Retrieve image file from web service - Mendix Forum

Retrieve image file from web service

0

Hi,

I need to retreive some data from a web service which includes an image file and I’m just wondering if anyone has any tips on the best way of doing this. I’m writing the web service from scratch so I can set this up any way that is suitable for Mendix.  I could fetch the text data using a REST call and the image using the image viewer and a direct link (I have an API gateway to my internal service to allow this).  Or I could retrieve the file itself over the REST call if this is possible?  Or would encoding the file in Base64 be a better way and then decode it in Mendix.  Any ideas would be great.

Thanks

asked
1 answers
2

I would suggest the Base64 encoding and decoding. The community commons has a functionality to encode and decode the base64 string.

Regards,

Ronald

 

answered