5/18/2019
Posted by 

I have an issue with data coming from the internet. I have a package coming from the internet that has the content-type:application/octet-stream.

My question is how do i decode it to readable values (such as 1,4.321,-2.6013 etc)? or is there any application that can do this?

For example:

3ecccccd is 0.400 (http://gregstoll.dyndns.org/~gregstoll/floattohex/) some are real numbers. 07d0 is 2.000

user2015552user2015552

2 Answers

HTTP's Content-Encoding header only applies to how data is encoded inside of the HTTP message itself, not how the data itself is encoded outside of HTTP. There is no Content-Encoding header present in your example, so HTTP is not encoding the data in any way, it is giving you the raw data as-is.

When HTTP's Content-Type header is application/octet-stream, that mean the data (after decoding it based on the Content-Encoding, if any) is raw 8bit data, the sender does not know what the actual type of the data is. Without a more meaningful Content-Type to tell you what the data actually represents, the only thing you can do is analyze the raw data and make educated guesses about what it might be, unless you know through other means what the data is supposed to be.

Usually, binary data formats have a header/signature at the front of the data to identify what the data is, so you might start with that.

Until you can identify the data type, you cannot know which bytes represent what kind of values, what endian is used for multi-byte values, etc. In short, you need more information about the data you are downloading in order to know how to process it.

Remy LebeauRemy Lebeau

That content type does not indicate any encoding. All it means is that the data represents a stream of (8-bit) bytes. How they're encoded is an entirely separate matter. To discover the encoding, you can look at other headers (such as Content-Encoding), or else the encoding might be implicit, in which case you'll need to consult documentation. Then choose an appropriate decoding strategy based on that.

Rob KennedyRob Kennedy

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

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: Fl studio reg file.

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.

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).

Free download movie conjuring 2 in hindi

Content Type Application Octet Stream

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.

LGBT Wedding Expo is a 1 day event being held on 23rd September 2018 at the Holiday Inn Cleveland Northeast - Mentor in Mentor, USA. Lgbt expo nyc.

Octet Stream

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.