Author: blackpuppy | Posted on: 9/17/2007 3:09:01 AM | Views : 327

I am trying to open a document read from database.  The document can be of any type such as JPG, PDF, EXCEL, WORD, TEXT, etc.  I am wondering what value I should assign to Response.ContentType?  What are the possible values?  Could I just use the following for all file types?
 
Response.ContentType = "application/octet-stream"; 
Or should I assign different value for each individual file types?
 
Thanks!
blackpuppy
 
...

Go to the complete details ...