application/octet-stream |
MIME Type: application/octet-stream |
MIME Content Type:Application |
Associated File Extensions:pkg files, lha files, lzh files, bin files, lrf files, mar files, class files, dylib files, elc files, so files, dmg files, dms files, bpk files, exe files, pgp files, ani files, dll files, deploy files, dist files, distz files, dump files |
Any general, binary format that the server doesn't recognize usually uses this MIME type. Upon receiving this type, most browsers prompt the user and give the user an option to save to disk. RFC1521, Borenstein |
Compatible with Windows 10, 8, 7, Vista, XP and 2000
Optional Offer for WinThruster by Solvusoft | EULA | Privacy Policy | Terms | Uninstall
What Are MIME Types?
A Multi-Purpose Internet Mail Extension (eg. “application/octet-stream”), also known as a MIME, is type of Internet standard originally developed to allow the exchange of different types of data files through e-mail messages. MIME types like application/octet-stream are classified into specific data categories such as Video, Audio, Image, and many more. This categorization provides instructions to your computer or mobile device about how these files should be opened / viewed.
Why Do I Need MIME Types Like application/octet-stream?
Categorizing MIME types like application/octet-stream into a data type such as “Application” allows your e-mail client or Internet browser to display the content as intended. For example, when you attach a digital camera photo file to an e-mail, an Image MIME type will be associated with that file to allow your recipient to view the photograph.
Here's how it works: Web servers (computers that host websites and e-mail) insert a set of MIME instructions into the beginning of a data transmission, such as an e-mail message or webpage, in the following format:
Content-Type: application/octet-stream
[Format Explanation: The MIME type, which in this example is “Application”, is separated by a forward slash (“/”) and followed by a subtype.]
This set of instructions tells your client application, such as an e-mail program (eg. Microsoft Outlook, Apple Mail) or web browser (eg. Google Chrome, Mozilla Firefox), which “player application” should be used to properly display the application/octet-stream content.
Many modern web browsers include built-in components to display common data types such as image players (eg. GIF, JPEG), Adobe Flash Player, Javascript, and many more. Other less-common types of players must be downloaded separately in order to properly display the MIME content.
What Are The Most Common Problems Associated With application/octet-stream?
Sometimes you’ll find that your web browser or e-mail client is unable to properly display your application/octet-stream content. This could be due to one of two reasons:
1. You are missing the proper Application “player software” to display the application/octet-stream content.
2. Your Windows Registry contains an incorrect file extension (eg. XLS, PDF) association with the application/octet-stream MIME type.
Behringer xenyx 1204usb driver download. Btw what may have solved my GB glitch (if it wasn't gain all along) is to go into GarageBand on the main application toolbar then preferences then audio/midi then change inputs and outputs to something else you don't want then back to USB audio codec.
How To Fix application/octet-stream Issues
Do I have the application/octet-stream “player application” installed?
The first step in troubleshooting issues with opening application/octet-stream content is to first make sure that you have the correct “player application” installed for this MIME type. Because there can be several (or even hundreds) of related software applications to application/octet-stream, it is very difficult for us to compile a comprehensive list.
Therefore, a key strategy in determining the correct application is to look for clues on what software programs might be related to application/octet-stream. Look at the naming of the subtype for clues about a related program (eg. Word, Excel) or software developer name (eg. Microsoft).
Furthermore, if you’ve been sent MIME type application/octet-stream as an e-mail attachment, look for the file extension of the attached file. This file extension (eg. PKG, LHA, LZH, etc.) can provide you with a clue of what “player application” is associated with this Application MIME. Take a look at our file extension list below to see if there are any clues to finding the right “player application”.
Do I have broken application/octet-stream file associations?
The second step in troubleshooting application/octet-stream issues is making sure that you have correct file associations in the Windows Registry. Installing and uninstalling programs can lead to incorrect file associations with application/octet-stream. Take a look at your Windows Registry settings to ensure that the MIME type is correctly associated with the “player application” and file extension.
WARNING: DO NOT edit the Windows Registry unless you are an advanced computer user with experience editing the Registry. Making an error in editing the Registry can create irreversible damage to your PC.
If you are not comfortable editing the Windows Registry, we highly recommend using an automated registry cleaning program, or taking you computer to a qualified professional. Tom and jerry complete collection.
I'm using database query in PHP to retrieve a binary file. But when I'm trying to force download it, the header('Content-type: application/octet-stream') line cause 0 byte files. Without that line I can download the file with full content. It's a binary file that's for sure so I just can't understand why that line causes the problem.The code:
Any idea? Thanks.
2 Answers
filesize()
won't return a meaningful value.
You have binary data in $file
, not an actual filename as required as first parameter. Hence you would get an error. (Enable error_reporting! Not seeing errors, and not having them are two different things.)
So what you want to use there is strlen($file)
, not filesize()
.
Btw, application/octet-stream
or other fill-ins have no use for forcing downloads. It's the Content-Disposition:
header which is most crucial to that effect. You're still allowed to send the correct MIME type.
From looking at the query I guess that in $row['data']
is the binary data stored. To set the correct Content-Length header you should use mb_strlen($row['data']);
. If no multibyte support (the mb_ functions) is activated on your machine, use strlen(). But be aware, this may result in akward results because the binary data could actually contain the EOF byte sequence and return a too short length. With the mb_strlen function you are on the save side.
Not the answer you're looking for? Browse other questions tagged phpdownload or ask your own question.
Hello experts,I am unsuccessfully trying to use an HTML5 player on my website.. however, I'm running into a problem with Firefox/IE. I reencoded by videos as ogv and have tested the videos and they are working. However, Firefox is throwing the following error:
Content-type Application/octet-stream Multipart/form-data
HTTP 'Content-Type' of 'application/octet-stream' is not supported. Load of media resource https://s3.amazonaws.com/nationalmortgageforgivenessplan/hoi.ogv failed.I've tried to add .htaccess file with the following:
AddType text/xml .xml
AddType video/mp4 .mp4 .m4v
AddType video/mpeg .mpeg .mpg
AddType video/quicktime .mov
AddType video/ogg .ogv
AddType video/webm .webm
AddType audio/mp4 .m4a .m4b .m4r
AddType audio/mpeg .mp3
AddType audio/playlist .m3u
AddType audio/x-scpls .pls
AddType audio/ogg .ogg
AddType audio/wav .wav
And I've also altered the mime.types file to include the ogg/ogv file types but it still isnt working.. what else could be wrong?
MIME (Multipurpose Internet Mail Extensions) is an internet standard that is used to identify the types of content found in various files. These types can include applications, sounds, video, text, and many others.In a way, they are much like the file extensions you're familiar with on your desktop or laptop. For example, the .doc extension that is used for Word documents, the .exe for executable windows files, and .xls that is found on Excel files are all file extensions you are undoubtedly familiar with for the files on your computer.
MIME types are defined in HTML by the type
attribute on links, objects, and script and style tags.
In this article, we will list the various MIME types for applications, sounds, images, mail messages, text files, video files, and virtual world files. You can use this article as a handy catalog of all of these files should you need these MIME types in the future.
The MIME type for HTML is:
text/html