By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
431,990 Members | 1,741 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 431,990 IT Pros & Developers. It's quick & easy.

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

P: n/a
MJ
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.
Nov 17 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
PJ
use Response.BinaryWrite

~PJ

"MJ" <ma************@hotmail.com> wrote in message
news:16**************************@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.

Nov 17 '05 #2

P: n/a
MJ
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" <pj***@hotmail.com> wrote in message news:<OX*************@tk2msftngp13.phx.gbl>...
use Response.BinaryWrite

~PJ

Nov 17 '05 #3

P: n/a
MJ
Ok... it did work. Thanks!
Nov 17 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.