1
0
mirror of https://github.com/Bayselonarrend/OpenIntegrations.git synced 2026-06-16 04:03:20 +02:00
Files
OpenIntegrations/docs/en/examples/HTTPClient/SetBinaryBody.txt
T
Vitaly the Alpaca (bot) bb44f4ca8d Main build (Jenkins)
2025-10-05 19:19:32 +03:00

11 lines
351 B
Plaintext
Vendored

URL = "https://bin.openintegrations.dev";
URL = URL + "/post";
Image = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary Data
Result = OPI_HTTPRequests.NewRequest()
.Initialize(URL)
.SetBinaryBody(Image) // <---
.ProcessRequest("POST")
.ReturnResponseAsJSONObject();