How to convert FileDocument to binary to display Image

1
Hi, I have an image retrieved from Teamcenter and it is FileDocument type. The image widget requires binary type rather than FileDocument and the other image widget required URL and I got an idea how to make URL that response particular FileDocument, but it is a duplicated job. What I want is to convert FileDocument to Binary so that I can use it as a parameter of the image widget. Can you help me with this? Thanks in advanve
asked
2 answers
1

com.mendix.core.Core.getFileDocumentContent can be used along with com.mendix.core.objectmanagement.member.MendixBinary.storeValue to populate blobs from filedocuments

answered
1

System.Image is generalisation of System.FileDocument. Can you retrieve your image as a System.Image and pass it to the built in Image Viewer widget?

answered