Hi Emile,
Does wget and curl work as expected?
/Imran
On Tue, Mar 30, 2010 at 9:18 PM, emile <shrrrine_at_gmail.com> wrote:
>
> Hi,
>
> I am using a method with my Resource that downloads file content.
>
> @GET
> public Response getFile()
> {
> .....
> InputStream in = null;
> in = new BufferedInputStream(new FileInputStream(file));
> return Response.ok(in, strMimeType).build();
> }
>
> When i send a request to the Resource, I get a file download dialog with
> Open and Save. When i click the Open button, a new request is sent to the
> resource and only after that is the file displayed. Not sure why this is
> happening. Tried the same with StreamingOutput as well but in vain.
>
> TIA,
> Emile
>
>
> --
> View this message in context: http://n2.nabble.com/File-Download-Dialog-tp4825099p4825099.html
> Sent from the Jersey mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jersey.dev.java.net
> For additional commands, e-mail: users-help_at_jersey.dev.java.net
>
>
--
Imran M Yousuf
Entrepreneur & CEO
Smart IT Engineering
Dhaka, Bangladesh
Email: imran_at_smartitengineering.com
Blog: http://imyousuf-tech.blogs.smartitengineering.com/
Mobile: +880-1711402557