Re: Displaying a PDF in a GWT application using a servlet (or not)
Why do you want to store invoice info in the blob store ? Invoice data is not meant to be fixed, I mean client might update it at any time, again its over head you to go and update it in the blod store. Try this http://pdfjet.com/ I suggest you to develop your own servlet, let this servlet do use of the pdfjet api to generate invoice on fly itself, no worry of storing it. Let the client do whatever he wants with that pdf file. Hope it helps you. -- *S*antosh *K*umar *K * On Fri, Mar 16, 2012 at 2:45 AM, karim duran wrote: > Hi Philroc1, > > I suggest you to developp your own servlet to do that. > PDF in a blob is a good solution ( no need to fill the filesystem ). > Put the SubscriberInformation object in session, so your servlet can find > it, and serve the PDF. > > I met a similar problem, and it's how i did. > > Regards. > > Karim Duran > > > 2012/3/15 philroc1 > >> Hello, >> >> I have just developed a GWT application which displays a table >> containing client invoice data (invoice number, start date, etc.) I >> would now like to display the clients' invoice PDFs (which are stored >> in BLOBs) whenever they click PDF icons contained in the table's last >> column. >> >> One of my colleagues recommended creating an RPC "servlet" to do that. >> Unfortunately, I can't figure out how to pass user information >> (contained in a SubscriberInformation object in the GWT application) >> to the servlet so that it can easily retrieve the corresponding BLOB >> using one of the application's DAOs. >> >> I have thought of writing the contents of the blog to a file in the >> GWT application, and passing the file URL to the servlet, but the >> Project Manager doesn't want PDF files to be written to the file >> system. >> >> Any suggestions would be greatly appreciated. >> >> philroc1 >> >> -- >> 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+unsubscr...@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+unsubscr...@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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Re: Displaying a PDF in a GWT application using a servlet (or not)
Hi Philroc1, I suggest you to developp your own servlet to do that. PDF in a blob is a good solution ( no need to fill the filesystem ). Put the SubscriberInformation object in session, so your servlet can find it, and serve the PDF. I met a similar problem, and it's how i did. Regards. Karim Duran 2012/3/15 philroc1 > Hello, > > I have just developed a GWT application which displays a table > containing client invoice data (invoice number, start date, etc.) I > would now like to display the clients' invoice PDFs (which are stored > in BLOBs) whenever they click PDF icons contained in the table's last > column. > > One of my colleagues recommended creating an RPC "servlet" to do that. > Unfortunately, I can't figure out how to pass user information > (contained in a SubscriberInformation object in the GWT application) > to the servlet so that it can easily retrieve the corresponding BLOB > using one of the application's DAOs. > > I have thought of writing the contents of the blog to a file in the > GWT application, and passing the file URL to the servlet, but the > Project Manager doesn't want PDF files to be written to the file > system. > > Any suggestions would be greatly appreciated. > > philroc1 > > -- > 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+unsubscr...@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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.
Displaying a PDF in a GWT application using a servlet (or not)
Hello, I have just developed a GWT application which displays a table containing client invoice data (invoice number, start date, etc.) I would now like to display the clients' invoice PDFs (which are stored in BLOBs) whenever they click PDF icons contained in the table's last column. One of my colleagues recommended creating an RPC "servlet" to do that. Unfortunately, I can't figure out how to pass user information (contained in a SubscriberInformation object in the GWT application) to the servlet so that it can easily retrieve the corresponding BLOB using one of the application's DAOs. I have thought of writing the contents of the blog to a file in the GWT application, and passing the file URL to the servlet, but the Project Manager doesn't want PDF files to be written to the file system. Any suggestions would be greatly appreciated. philroc1 -- 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+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.