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\);
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
2 matches
Mail list logo