Best way to POST a file?


Hi guys,
I want to take the binary data file of an image and upload via POST multipart/form-data to a webservice, then consume the (JSON) result.
This should be possible with lots of writing in Groovy or Python, but is it possible in either the GetPage or EnrichData by WebService operators?
Tagged:
0
Answers
Hi John,
I am not 100% sure if I get you correct but this should work with the File Upload functionality described in this Knowledge base article. The upload functionality is not limited to MIME type Excel or CSV.
You could also use curl. For Enrich Data by Webservice the image needs to be in the body of the message.
Hope this helps.
Best,
Edin
hi...I have tried to do something very similar with the Zamzar API where I am uploading a PDF binary. I use cURL instead of Enrich Data via Webservice as the latter did not work well for me. Here's my code - hopefully you will see what I was doing and adapt to your issue.
Scott