locked
File download problem over https.. RRS feed

  • Question

  •  

    Hi,

    I am trying to download a file on ppc-03 using following url. https://servername:httpsport/com.test.download.MobileComponentServlet?Application=appname&version=version&type=cab

    when I invoked this URL on ppc IE it has saved the file with extension ".MobileComponentServlet" but the actual file is "appname.cab".

    I want to download this file as a .cab file only.

    Can any one reply me what could be the problem here.

    If I try to download the same file using http then its getting downloaded properly.

    Any kind of help will be highly appreciated.

     

    I wrote the following code to read the file

     

    response.setContentType("application/octet-stream");

    String fileName = "attachment; filename="+name;

    response.setHeader("Content-Disposition", fileName);

    OutputStream out = response.getOutputStream();

    byte[] output = (byte[])content.get("FILE_CONTENT");

     

    out.write(output);

    this code is not working only in ppc-03

     

    Thanks,

    Satyendra

    Wednesday, July 18, 2007 9:16 AM

Answers