[Web Previewer] Sample doesn't work for database files

Forge Component
Published on 2018-11-19 by Rui Mendes
18 votes
Published on 2018-11-19 by Rui Mendes

The URL files work ok but the database files don't.  Any clues please as to what is going on please and why it doesn't work?  I'm running it on Outsystems v10.  Thanks

Hey Sienna,

There is a Forge conversation that already covers this:

Can you check the firewall rules for your server and see if that is the issue?

Best Regards,
Jose Torrao

Thanks Jose - and for your help in solving the problem! :)

I'm also concerned about the security in the solution proposed in the above link, so for anyone else reading this, the solution I used was first I wrote something using Aspose Word to convert Word docs to image files.  Then I pass the binary data from the image file as a URL in the Web Previewer using the following format (NB: the BinaryToBase64 comes from the BinaryData component and BinaryContent is the binary data):

"data:image/jpeg;base64," + BinaryToBase64(BinaryContent)