Wednesday, January 25, 2012

Re: Displaying PDF BLOB in new window - GWT

i would just use a Servlet/jsp at backend to read pdf-blob push the the file back ( set the content-type header correctly ) so the browser can decide to show it with pdf-viewer-plugin or save it to users file system

hth


On Wed, Jan 25, 2012 at 7:52 PM, Joshua Carey <jc11059@gmail.com> wrote:
Hi everyone,

I currently am getting a BLOB from oracle and displaying it in a new window.  To accomplish this, I am reading the blob into a byte array, then writing the BYTE array out to the file si ystem as pdf.  I then use "Window.open("URL to PDF on filesystem").  The problem is that I am writing all these blobs as PDF to the filesystem before being able to use the Window.open command in my GWT application.  How can I use Window.open("using the byte array") instead of having to write the PDF to the file system?  This would greatly help me and any help is appreciated.  I am calling the Window.open from within my "Presenter" class.  Just for your information.  Thank you very much.

Joshua

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/R6jKcLzu6M4J.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment