0 Replies Latest reply on Aug 27, 2008 2:26 AM by (Max_Millar)

    Non-alphanumeric chars replaced with underscore when saving long filenames

      I have a java application that streams a byte array (content type: 'application/pdf') to an Internet Explorer window. The PDF displays fine, in an embedded version of Adobe Reader 8. However, if I click on the Adobe 'Save' button then the filename gets changed as follows:

      PDF URL: http://localhost:8080/mcs/ctrl/flowOpenJobPDFWindow/AP1070.pdf?veryLongQueryString...

      PDF filename: http___localhost_8080_mcs_ctrl_flowOpenJobPDFWindow_AP1070.pdf

      Anything that isn't alphanumeric is converted into an underscore character. I would expect, and need, the file to be named something like 'AP1070.pdf'.

      I think this has something to do with the fact that I am streaming content to IE because if I point an IE window to an identical file that actually exists on the server then the filename when saving does look like 'AP1070.pdf', regardless of the length of the URL or querystring. Does adobe reader expect something in the header to stop this happening?

      I can provide java code if this would be useful, or any other information required. If you think this is more likely to be a java issue then I thank you for your time and will raise on a java forum.

      Windows XP Professional Version 2002 Service Pack 2.
      Adobe Reader 8.
      Internet Explorer 7.0.5730.11

      Many thanks,