1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2025-11-25 22:12:29 +02:00
Files
OpenIntegrations/docs/en/examples/HTTPClient/SetBinaryBody.txt
Vitaly the Alpaca (bot) 0fe1cf5bbd Main build (Jenkins)
2025-04-22 21:18:27 +03:00

11 lines
335 B
Plaintext
Vendored

URL = "https://httpbin.org";
URL = URL + "/post";
Image = "https://api.athenaeum.digital/test_data/picture.jpg"; // URL, Path or Binary Data
Result = OPI_HTTPRequests.NewRequest()
.Initialize(URL)
.SetBinaryBody(Image) // <---
.ProcessRequest("POST")
.ReturnResponseAsJSONObject();