API requests file.jpg How to upload file.jpg to API in outsystems
Hi Tada,
Your description is a bit meager to fully understand what you want to achieve. I assume you are consuming a third-party API, and it has a method that allows you to upload a file? If so, the API description should tell you how to upload that file. It very much depends on the API how binary files can be uploaded. Some use Multipart/form-data, others use JSON with Base64-encoded binaries, etc. Without further details it's impossible to help you.
sorry for the little information am from thailand I can use a little bit of English language
Request from data
Response JSON
I'm not sure what language that is, but it is sure not OutSystems :). Regardless, you need the API description, the document that describes in detail what the API expects, and especially in what format. Without knowing that, I can't tell you how to do it in OutSystems.
I coding api in python language and I deploy my api on cloud. I will build app from outsystems and run my api My api works by getting .jpg file with key upload.
Ok, I did some googling and it seems that the Python you created there expects a Multipart/form-data REST method body. You can check here how to consume such an API in OutSystems. Check the versions of your Platform Server (should be at least 11.19.0) and Service Studio (should be at least 11.53.40) for it to be available.