Vijay, this works for me for png files. I don't expect pdf to behave differently

// Flex
navigateToURL(new URLRequest(url), "_self");

//Java servlet
response.setContentType("image/png");
response.addHeader("Content-Disposition", "attachment; filename=\"" + name + ".png\"");
response.setContentLength(bytes.length);
response.getOutputStream().write(bytes);

hth
charles

On Mar 19, 2009, at 4:49 PM, Vijay Ganesan wrote:

Anyone know how I could give the user the Open or Save choice on download of a file using URLLoader or FileReference or something else?

Reply via email to