users@jersey.java.net

File Download

From: emile <shrrrine_at_gmail.com>
Date: Mon, 22 Mar 2010 03:41:35 -0800 (PST)

Hi,

I have a method in my resource which is responsible for providing the file
content. Using the following code i was able to get the content on my
browser -

return Response.ok(file,"text/plain").header("Content-Type",
"application/pdf").build();

But I'm unsure how to get the file content in its corresponding application.
For e.g. pdf file content should be displayed using the Acrobat reader.

TIA,
Emile
-- 
View this message in context: http://n2.nabble.com/File-Download-tp4777092p4777092.html
Sent from the Jersey mailing list archive at Nabble.com.