POST image

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
2 answers

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

regards, Fabian


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: