How to convert FileDocument to binary to display Image
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
com.mendix.core.Core.getFileDocumentContent can be used along with com.mendix.core.objectmanagement.member.MendixBinary.storeValue to populate blobs from filedocuments
𝕺𝖈𝖐𝖊𝖗𝖙 𝖛𝖆𝖓 𝕾𝖈𝖍𝖆𝖑𝖐𝖜𝖞𝖐
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?