[appengine-java] Re: uploaded file how to view in browser
have u tried - setContentType method? On Oct 26, 12:05 pm, prabu wrote: > Hi.. > I was uploaded file(pdf) in Blob it's working fine.and how to > view uploaded file in browser (Download is working).but image files > are view in browser I'm using struts framework. > > please help me.. > > Thanks&Regards > Prabu -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: uploaded file how to view in browser
Hi.. Thanks lot for ur reply response.setContentType("application/pdf"); response.setHeader("Content-disposition","inline; filename=test.pdf"); OutputStream out = response.getOutputStream(); out.write(fileBlob.getBytes()); In this way i was tried... -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: uploaded file how to view in browser
Hi.. Thanks for ur reply. Content Type "application/octet-stream is working fine but same operation doing for Content Type "application/pdf. i want view pdf in browser like image view in browser. If have any idea help me. -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
[appengine-java] Re: uploaded file how to view in browser
Hii Thanks to all It's working fine response.setContentType("application/pdf"); -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.
Re: [appengine-java] Re: uploaded file how to view in browser
use Content Type "application/octet-stream" for download and Content Type "application/pdf" to view On Tue, Oct 26, 2010 at 9:09 PM, prabu wrote: > Hi.. > Thanks lot for ur reply > > response.setContentType("application/pdf"); > > response.setHeader("Content-disposition","inline; filename=test.pdf"); > > OutputStream out = response.getOutputStream(); > > out.write(fileBlob.getBytes()); > > > In this way i was tried... > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine for Java" group. > To post to this group, send email to > google-appengine-j...@googlegroups.com. > To unsubscribe from this group, send email to > google-appengine-java+unsubscr...@googlegroups.com > . > For more options, visit this group at > http://groups.google.com/group/google-appengine-java?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Google App Engine for Java" group. To post to this group, send email to google-appengine-j...@googlegroups.com. To unsubscribe from this group, send email to google-appengine-java+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/google-appengine-java?hl=en.