force download problem in HTTPS

Discussion in 'Java' started by f.dearcangelis@essematica.it, Dec 6, 2006.

  1. Guest

    Hi Folks,

    I have some problem when i attempt to download a file from my https web
    application.

    After browser request open or save the error is :

    "resource not found or not available"

    The code is:

    byte [] data = this.DOCUMENTO.getBytes(1,len);


    ServletOutputStream sos = response.getOutputStream();

    response.setContentType("application/octet-stream");
    response.setContentLength(data.length);
    response.setHeader("Content-Disposition", "attachment;
    filename=" + this.NOMEFILE);

    sos.write(data);
    sos.flush();
    sos.close();

    thanks for all
    , Dec 6, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Anonieko
    Replies:
    1
    Views:
    2,428
    Mark Rae
    Dec 31, 2006
  2. John McDermidt

    Force HTTPS

    John McDermidt, Jul 3, 2003, in forum: ASP General
    Replies:
    7
    Views:
    153
    Splatter
    Jul 3, 2003
  3. Sergej Prokoviev

    force web root into https; redirect issues

    Sergej Prokoviev, Aug 22, 2006, in forum: ASP General
    Replies:
    2
    Views:
    143
    Sergej Prokoviev
    Aug 23, 2006
  4. Axel
    Replies:
    8
    Views:
    1,088
    Adrienne Boswell
    Apr 27, 2009
  5. jotto
    Replies:
    4
    Views:
    387
    jotto
    Oct 2, 2006
Loading...

Share This Page