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

Security Concern

P: n/a
My application architecture involves 3 layers.
The 1st layer is the IIS Web Server, which has .Net
components.
When a file is uploaded the contents of the file are
extracted in bytes and stored in the Database Server
via .Net components in the application server.

When a user requests for the file, I have to stream the
file and render in the client browser. If the file is
a .pdf file the rendering is perfect. If the file is
a .mhtml file it renders the content with all html tags.

Can you let me know how to render mhtml files directly to
the browser stored in the database.
..
Nov 16 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
I am not able to test this, but I would expect that you
are specifying the wrong MIME type, try changing your
Response.ContentType value to "text/html". I'm guessing
that you are setting it to "application/unknown" which
could result in what you are seeing.

Brendan
-----Original Message-----
My application architecture involves 3 layers.
The 1st layer is the IIS Web Server, which has .Net
components.
When a file is uploaded the contents of the file are
extracted in bytes and stored in the Database Server
via .Net components in the application server.

When a user requests for the file, I have to stream the
file and render in the client browser. If the file is
a .pdf file the rendering is perfect. If the file is
a .mhtml file it renders the content with all html tags.

Can you let me know how to render mhtml files directly to
the browser stored in the database.
..
.

Nov 16 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.