Open PDF in browser with bytes

Open PDF in browser with bytes

  
Hi all.

I've a pdf bytes saved in my database and I want open the pdf file directly in new window/popup, without a question popup for save/open a file (without download action).

Somebody help me?

Thank you.
Hi Cristina,

1) Create a new webscreen (name it FileGetScreen for example) with a FileId input parameter.
2) On preparation, using a Query, retrieve your binary data based on FileId.
3) Using a Download widget, replace your "END" node on preparation with your Download Widget.
4) Set your Download widget property "Save to Disk" to FALSE.

On your consumer webscreen, you just have to create a link to your new webscreen with the desired FileId.
*Important: For security reasons, it is necessary to implement some "authentication/authorization" logic on your  FileGetScreen 

Regards,
Rafael Pereira
Lisbon Solutions
http://www.lisbonsolutions.pt
That's it :)

Thank you.
open the pdf file directly in new window/popup

1) Create a new webscreen (name it FileGetScreen for example) with a FileId input parameter.
2) On preparation, using a Query, retrieve your binary data based on FileId.
3) Using a Download widget, replace your "END" node on preparation with your Download Widget.
4) Set your Download widget property "Save to Disk" to FALSE.
5) Set MINE-TYPE = ""application/pdf""