What Is Application Octet Stream

@Wilt if the client wants to save it, then it doesn't matter what headers are sent (you can 'save' or 'save link as' on anything in your browser), as the headers are information, not rules so attachment could be considered 'best not to display this yourself' while inline as 'best to display this yourself if you can'.

  1. Application Octet Stream File
  2. What Is Application/octet-stream C#
  3. What Is A Application/octet-stream
  4. What Is Application/octet-stream Files
  1. An Application/Octet-stream is a MIME attachment which is present in the operating system. This MIME type is basically related to the file extension.bin as it relates to all of the binary files. It is one of the important types in the operating system. Application/Octet-stream comes in the category of binary files.
  2. This might be something else to look at, but maybe an options: string contentType = System.Web.MimeMapping.GetMimeMapping(fileName).
  3. Nov 12, 2019 A multipurpose internet mail extension, or MIME type, is an internet standard that describes the contents of internet files based on their natures and formats.This cataloging helps the browser open the file with the appropriate extension or plugin.
  4. A bitstream (or bit stream), also known as binary sequence, is a sequence of bits. A bytestream is a sequence of bytes.Typically, each byte is an 8-bit quantity, and so the term octet stream is sometimes used interchangeably.

MIME types describe the media type of content, either in email, or served by web servers or web applications. They are intended to help provide a hint as to how the content should be processed and displayed.

Application Octet Stream File

Examples of MIME types:

  • text/html for HTML documents.
  • text/plain for plain text.
  • text/css for Cascading Style Sheets.
  • text/javascript for JavaScript files.
  • text/markdown for Markdown files.
  • application/octet-stream for binary files where user action is expected.

Server default configurations vary wildly and set different default MIME-type values for files with no defined content type.

Versions of the Apache Web Server before before 2.2.7 were configured to report a MIME type of text/plain or application/octet-stream for unknown content types. Modern versions of Apache report none for files with unknown content types.

Nginx will report text/plain if you don't define a default content type.

As new content types are invented or added to web servers, web administrators may fail to add the new MIME types to their web server's configuration. This is a major source of problems for users of browsers that respect the MIME types reported by web servers and applications.

Why are correct MIME types important?


If a web server or application reports an incorrect MIME type for content (including a 'default type' for unknown content), a web browser has no way of knowing the author's intentions. This may cause unexpected behavior.

Some web browsers, such as Internet Explorer, try to guess the correct MIME type. This allows misconfigured web servers and applications to continue working for those browsers (but not other browsers that correctly implement the standard). Apart from violating the HTTP spec, this is a bad idea for a couple of other significant reasons:

Loss of control
If the browser ignores the reported MIME type, web administrators and authors no longer have control over how their content is to be processed.
For example, a web site oriented for web developers might wish to send certain example HTML documents as either text/html or text/plain in order to have the documents either processed and displayed as HTML or as source code. If the browser guesses the MIME type, this option is no longer available to the author.
Some content types, such as executable programs, are inherently unsafe. For this reason, these MIME types are usually restricted in terms of what actions a web browser will take when given that type of content. An executable program should not be executed on the user's computer and should at least cause a dialog to appear asking the user if they wish to download the file.
MIME type guessing has led to security exploits in Internet Explorer that were based upon a malicious author incorrectly reporting a MIME type of a dangerous file as a safe type. This bypassed the normal download dialog, resulting in Internet Explorer guessing that the content was an executable program and then running it on the user's computer.

JavaScript legacy MIME types

When looking for information about JavaScript MIME types, you may see several MIME types that reference JavaScript. Some of these MIME types include:

  • application/javascript
  • application/ecmascript
  • application/x-ecmascript
  • application/x-javascript
  • text/ecmascript
  • text/javascript1.0
  • text/javascript1.1
  • text/javascript1.2
  • text/javascript1.3
  • text/javascript1.4
  • text/javascript1.5
  • text/x-ecmascript
  • text/x-javascript

While browsers may support any, some, or all of these alternative MIME types, you should only use text/javascript to indicate the MIME type of JavaScript files.

Note: See MIME types (IANA media types) for more information.

What Is Application/octet-stream C#

How to determine the MIME type to set

There are several ways to determine the correct MIME type value to be used to serve your content.

  • If your content was created using commerical software, read the vendor's documentation to see what MIME types should be reported for the application.
  • Look in IANA's MIME Media Types registry, which contains information on all registered MIME types.
  • Search for the file extension in FILExt or the File extensions reference to see what MIME types are associated with that extension. Pay close attention as the application may have multiple MIME types that differ by only one letter.

How to check the MIME type of received content

  • In Firefox
    • Load the file and go to Tools > Page Info to get the content type for the page you accessed.
    • You can also go to Tools > Web Developer > Network and reload the page. The request tab gives you a list of all the resources the page loaded. Clicking on any resource will list all the information available, including the page's Content-Typeheader.
  • In Chrome
    • Load the file and go to View > Developer > Developer Tools and choose the Network tab. Reload the page and select the resource you want to inspect. Under headers look for Content-Type and it will report the content type of the resource.
  • Look for a <meta> element in the page source that gives the MIME type, for example <meta http-equiv='Content-Type'>.
    • According to the standards, the <meta> element that specifies the MIME type should be ignored if there's a Content-Type header available.

IANA keeps a list of registered MIME Media Types. The HTTP specification defines a superset of MIME types, which is used to describe the media types used on the web.

How to set up your server to send the correct MIME types

The goal is to configure your server to send the correct Content-Type header for each document.

  • If you're using the Apache web server, check the Media Types and Character Encodings section of Apache Configuration: .htaccess for examples of different document types and their corresponding MIME types.
  • If you're using NGINX, look at the NGINX configuration snippets. NGINX does not have a .htaccess equivalent tool, so all changes will go into the main configuration file.
  • If you're using a server-side script or framework to generate content, the way to indicate the content type will depend on the tool you're using. Check the framework or library's documentation.

Related Links

Hi Baja Dave,

Wow, that's...certainly something I've never seen before.

Just out of curiosity, do you also hit this problem when you gostraight to http://mail.google.com rather than using Roboform (I'm notfamiliar with that software)? This sounds like a problem with softwareon your computer or network, not Gmail.

On Aug 26, 9:03 pm, Baja Dave wrote:


StreamWhat Is Application Octet StreamWhat Is Application Octet Stream

I just did a clean reinstall of Xp on a Dell that I've owned for about4 years. Neverhad any problems with it per say just time to reinstall XP.Installed Xp home edition and SP 1, 2 & 3.Machine runs fine I can access all of my regular site except Gmail.

When I try and login to my or my wife’s Gmail account or mine I getthis;

'134 ¬‹ ÿl‘]kƒ0 †ïû+Äá.›~ Ù‡qØU× ¥Ðy±]¦ñÔ„%FLTº_¿ ÛÅ ¼ç9'ç…“hWìóxíÒdk¯â­ÈÓx¯z(½d£ZÒrq‰ÐT˜EèÚ¸9l?½ÍëË!? ± “¹ð½'ý(lºpá s—ÿM³tV0ðJE; µñ Ñžt}QâíŽi†}fL£¬†a^)U ˜S%¡TuµÑè ÚžSÈUÅëg=%X .n‰lž ¢5ï ›¶ Z‰ÏDè)¡ª6¼î &Á: V™=ãã?VW2ÖÖ Áz u°9Y9ØrØq«˜‘¶'ü¾X=yŸt —_!¯Îw÷‹ ^ F6 —p& 0¿„ ʯ ` CíÇ ZˆP ÏíºÇ=»µ»oú ÿÿ a J ¦x® 0'


Over and over again.I've run spyware, root kit finders, anti-trojan, virus protectionsoftware etc. Cannotfind anything that would cause this in my opinion.

Firefox was very helpful in that it realized it could not pull upGmail and it displayedthe following message;You have chosen to open 'application/octet-stream' (which I haddownloaded with IE, I was thinking it was a cookie of some type.)

What program would you like to open it with?I chose notepadthe file was named '2wSatj53.part'

I closed the file & refreshed FireFox and reopened the'application/octet-stream' again with notepad.This time the file is named 'Xjorb7a3.part'did this 3 more times each time the .part file had a new name.

Now what makes this especially interesting is I also reinstalled Xp ona second machine.

Guess what happened when I went to log into Gmail w/ Firefox on the2nd machine?It ask me if I wanted to download the 'application/octet-stream' Idid, now I had2 machine that load a page of giberish when I go to gmail.

On the 2nd machine I did a rollback right away.So I may or may not have the problem on machine 2.

Note, when I log into gmail I am using Roboform thus I am logging intothe exactsame url I have been using for several years.

What Is A Application/octet-stream

Now I also have a laptop, I did not reinstall the OS on the laptop andmy wife &I can both read our gmail as usual.

I cannot find the file? Used the windows search feature.

What Is Application/octet-stream Files

Have run my virus software etc. nothing.The file is somehow hidden.

What do I do........your thoughts Please

Thanks,Baja DaveP.S. Cut & paste the link below & see a screen shot I what I see whenI try & login to gmail.in regard to 'application/octet-stream'http://baja