Content Type Octet Stream Rating: 6,1/10 6954 votes

Kabhi alvida naa kehna full movie download. I need to stream a file to the Response for saving on the end user's machine. The file is plain text, so what content type can I use to prevent the text being displayed in the browser?

Octet
ProfKProfK

3 Answers

May 2, 2017 - My understanding is that the Java SDK sets by default a Content-Type: application/octet-stream header if none is provided by the user when. Handle content types in Azure Logic Apps. Octet-stream, and you include that content in a later action without casting, the outgoing request also has Content-Type. Mostly I found the appropriate type is binary file or the type octet-stream, but the result of the downloaded file can not be opened. Any help appreciate! Downloaded file can not opened.

To be on the safe side and ensure consistent behavior in all browsers, it's usually better to use both:

MunMun

In most cases, the following should work:

There are some marginal cases of browsers that will still display it as a text file, but none of the mainstream browsers will (I'm talking about browsers embedded in some MIDs).

EDIT: When this answer was originally published, sending the Mime-Type application/octet-stream was the only reliable way to trigger a download in some browsers. Now in 2016, if you do not need to support an ancient browser, you can safely specify the proper mime-type.

Andrew MooreAndrew Moore

I don't think it works that way.

Use a Content-Disposition: attachment header, but stick with the correct Content-Type.

Application Octet Stream Download

TomalakTomalak

Mime Application Octet Stream

Not the answer you're looking for? Browse other questions tagged asp.net or ask your own question.

Posted :