Re: [flexcoders] URLLoader, FileReference and file download from server - Open or Save options

2009-03-20 Thread Charles Galpin
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\);

[flexcoders] URLLoader, FileReference and file download from server - Open or Save options

2009-03-19 Thread Vijay Ganesan
I have a Flex application where the user clicks on a download button to download a file from the server. In my previous DHTML incarnation of the same application, on click of a download button I sent a request to my servlet which writes out the file bytes to o/p stream and sets the