[appengine-java] Re: uploaded file how to view in browser

2010-10-28 Thread prabu
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 fro

[appengine-java] Re: uploaded file how to view in browser

2010-10-27 Thread prabu
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 Goo

Re: [appengine-java] Re: uploaded file how to view in browser

2010-10-26 Thread A. Stevko
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; file

[appengine-java] Re: uploaded file how to view in browser

2010-10-26 Thread prabu
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 b

[appengine-java] Re: uploaded file how to view in browser

2010-10-26 Thread pman
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..