Professional Web Applications Themes

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

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 ...

  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. #2

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

    use Response.BinaryWrite

    ~PJ

    "MJ" <maryjofairburnhotmail.com> wrote in message
    news:16dc87aa.0306241307.7ba85e4cposting.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

  3. #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" <pjwalhotmail.com> wrote in message news:<OXP04RsODHA.704tk2msftngp13.phx.gbl>...
    > use Response.BinaryWrite
    >
    > ~PJ
    MJ Guest

  4. #4

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

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

Similar Threads

  1. DB java application
    By pacalla in forum Macromedia Flex General Discussion
    Replies: 0
    Last Post: November 16th, 02:54 AM
  2. Jrun & Java Application server
    By kmandal in forum Coldfusion - Advanced Techniques
    Replies: 0
    Last Post: March 23rd, 09:37 PM
  3. Passing parameters from t Java application to Flash
    By Francesco in forum Macromedia Flash
    Replies: 0
    Last Post: January 7th, 10:40 AM
  4. Replies: 1
    Last Post: September 4th, 04:37 PM
  5. Fast CGI Vs Java Application Servers
    By Charles Handy in forum PERL Miscellaneous
    Replies: 10
    Last Post: July 1st, 12:44 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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