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 <[email protected]> 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
> [email protected].
> To unsubscribe from this group, send email to
> [email protected]<google-appengine-java%[email protected]>
> .
> 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 [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to