The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
Best way to POST a file?
JEdward
RapidMiner Certified Analyst, RapidMiner Certified Expert, Member Posts: 578 Unicorn
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