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

11 lines
351 B
Plaintext
Raw Normal View History

2025-10-21 11:36:43 +03:00
 URL = "https://bin.openintegrations.dev";
2025-04-22 21:18:27 +03:00
URL = URL + "/post";
2025-10-21 11:36:43 +03:00
Image = "https://hut.openintegrations.dev/test_data/picture.jpg"; // URL, Path or Binary Data
2025-04-22 21:18:27 +03:00
Result = OPI_HTTPRequests.NewRequest()
.Initialize(URL)
.SetBinaryBody(Image) // <---
.ProcessRequest("POST")
.ReturnResponseAsJSONObject();