POST image

0
Hi, is there any other option to attach image to a POST call other than in Base64 format ? I have an endpoint which only accepst standard image file types (jpg, png, bmp...) attached to a body of a REST call. How could I attach it in Mendix ?     BR Miha
asked
2 answers
4

Maybe it is an option for you to directly post the file as binary?

regards, Fabian

answered
1

The only option I know of in this particular moment is using Form-Data:

4.3 Form-Data

This option allows you to generate a multipart/form-data request for multiple parts. Each part is a pair with a key and a value (microflow expression).

FileDocuments and images are are also supported for this option when used as variables in microflow expressions.

 

You can find it here:

https://docs.mendix.com/refguide/call-rest-action?utm_source=businessmodeler&utm_medium=software&utm_campaign=modeler

answered