Get Image file from Mendix Object in java in Hybrid APP

0
Hi all, I have been working on a task where the user uploaded image is to be converted to base64. But there is a problem getting the image file from the mendix object in java. Can anybody help to get the image file from mendixobject in java. Thanks in advance. 
asked
2 answers
1

I am not entirely sure what you want to achieve, but you can access the file content of a Mendix FileDocument (mendixFileDocument) by getting the inputstream like below:

InputStream inputStrm = Core.getFileDocumentContent(this.getContext(),this.mendixFileDocument.getMendixObject());

 

answered
0

Can't you use the base64encodeFile from the CommunityCommons with your image document as inputparameter?

answered