Asp.net and Contenttype = application/x-java-jnlp-file

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default Asp.net and Contenttype = application/x-java-jnlp-file

    I'm trying to stream the contenttype of "application/x-java-jnlp-file"
    via asp.net/c#, but the client only sees it as a plain text file.
    Example:

    Response.Clear();
    Response.ClearHeader();
    Response.Contenttype = "application/x-java-jnlp-file"
    Response.Write(--- jnlp file stuff ---)
    Response.End();

    All I get is a plain text. I have set the mime type of .jnlp file in
    IIS to "application/x-java-jnlp-file". It works if I set the aspx
    file's IIS Custom HTTP Header to include "content-type:
    application/x-java-jnlp-file", but I would rather do it in code. I
    have also successfully started java web start in asp with
    Response.contenttype = ... However, in asp.net, it will not work.
    asp.net will stream excel, word, but not jnlp type file. Please help.
    MJ Guest

  2. Similar Questions and Discussions

    1. DB java application
      where can i get another application free like the restaurant application offered by macromedia?
    2. Jrun & Java Application server
      Hi I have a question about Jrun and Java Application server . I am developing a data driven web system using J2EE and Coldfusion with SQL server...
    3. Passing parameters from t Java application to Flash
      Hi all, Does anybody know if it's possible to pass data from a Java application (JSP pages / Servlets) to a Flash application ? Thanks a lot...
    4. Response.ContentType = "application/vnd.ms-excel"
      Hi , I have my asp successfully creating excel file viewable through IE using the header: Response.ContentType = "application/vnd.ms-excel" ...
    5. Fast CGI Vs Java Application Servers
      How does FastCGI compare against java Apps running in java app servers like TomCat, Sun One, WebLogic and WebSphere? Is there a business case for...
  3. #2

    Default Re: Asp.net and Contenttype = application/x-java-jnlp-file

    use Response.BinaryWrite

    ~PJ

    "MJ" <maryjofairburn@hotmail.com> wrote in message
    news:16dc87aa.0306241307.7ba85e4c@posting.google.c om...
    > I'm trying to stream the contenttype of "application/x-java-jnlp-file"
    > via asp.net/c#, but the client only sees it as a plain text file.
    > Example:
    >
    > Response.Clear();
    > Response.ClearHeader();
    > Response.Contenttype = "application/x-java-jnlp-file"
    > Response.Write(--- jnlp file stuff ---)
    > Response.End();
    >
    > All I get is a plain text. I have set the mime type of .jnlp file in
    > IIS to "application/x-java-jnlp-file". It works if I set the aspx
    > file's IIS Custom HTTP Header to include "content-type:
    > application/x-java-jnlp-file", but I would rather do it in code. I
    > have also successfully started java web start in asp with
    > Response.contenttype = ... However, in asp.net, it will not work.
    > asp.net will stream excel, word, but not jnlp type file. Please help.

    PJ Guest

  4. #3

    Default Re: Asp.net and Contenttype = application/x-java-jnlp-file

    Nope. Didn't work. Any other suggestions? I'm thinking its more of
    mime settings on the W2k server. Is there something in the registry
    that might say something about mime types?


    "PJ" <pjwal@hotmail.com> wrote in message news:<OXP04RsODHA.704@tk2msftngp13.phx.gbl>...
    > use Response.BinaryWrite
    >
    > ~PJ
    MJ Guest

  5. #4

    Default Re: Asp.net and Contenttype = application/x-java-jnlp-file

    Ok... it did work. Thanks!
    MJ Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139