I have the contents of a file that I have constructed in memory by basically using String.getBytes(); and then passing that into a ByteArrayInputStream. I then read the bytes and stream them out via ServletOutputStream. The text reaches the client because I see the response in Firebug, the only problem is, is that it's not a file. I set the response like:
The call is made asynchronously. Any idea what I am doing wrong? I want there to be a prompt for the user to either save or open the file in the appropriate application.