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 <prabuc...@gmail.com> 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<google-appengine-java%2bunsubscr...@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.

Reply via email to