Click here to Skip to main content
15,917,951 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Importance of "octet-stream" in Response.ContentType

1. Will it give the option to Open file or Directly to Save/Download?
2. If i dont have Ms Excel, can i save .xls file in OpenOffice Spreadsheet?
Updated 19-Feb-13 19:46pm

Share this answer
application/octet-stream is for file downloading. When I tried last, AFAIK, it used to give a confirmation box asking if it needs to be opened or saved in some location. If you say open, it is downloaded in temp file and the default process attached to that extension will try to open it.
Share this answer
MalwareTrojan 20-Feb-13 1:49am    
If i dont have Ms Excel, can i Open/Save .xls file in OpenOffice Spreadsheet?
Sandeep Mewara 20-Feb-13 1:52am    
I doubt it. It's not like that. It is downloaded and saved, if possible open in default attached editor.
MalwareTrojan 20-Feb-13 4:29am    
Okay. . .And Can you please make me understand the difference between Response.Write() and Response.WriteFile().
Sandeep Mewara 20-Feb-13 4:38am    
Google and see what you get. :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900