Return to site

What Is Application Octet Stream

broken image


  1. What Is Application/octet-stream How To Open
  2. Application Octet Stream Download
  3. What Is Mediatype.application_octet_stream
  4. What Is Binary (application/octet-stream)

Additionally, if you look at the MDN documentation for file.type it will say file.type is only reliable for common file types like images, documents audio and video. I have no idea what is happening the last 2 versions of firefox (portable) some sites I will go too i will get this application/octet-stream with attachment to download. Application/octet-stream This is the default for binary files. As it means unknown binary file, browsers usually don't execute it, or even ask if it should be executed. They treat it as if the Content-Disposition header was set to attachment, and propose a 'Save As' dialog.

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:

Hello,

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'

What is application octet stream file
Open

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.

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.

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

Application

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

23 November 2017

by

Summary

Handling data from Azure Storage blobs is not straightforward. The return value is binary (application/octet-stream) at first and needs to be casted into a data type you want to process; in our case into application/json.

What is application/octet-stream c#

This write-up is an easy to follow and real walk through of errors beginners may encounter handling Azure Storage blobs in Azure Logic Apps. It has happened to me.

Requirements

As soon a new file (blob) in an Azure Storage container arrives this file should be processed by an Azure Function app.

Preparing the Playground

1) Create a new Azure Storage Account.
2) Create a new container in the storage account.
3) Create a new Azure Logic App.
4) Design the Logic App.

Challenges

A first draft could look like this.

With this configuration we have three steps.

  1. When one or more blobs are added or modified (metadata only) (Preview)
    • Created a connection to the newly created storage account.
    • Configured to look in the container files.
    • Configured to look for changes every 10 seconds.
  2. Get blob content
    • Gets the content of a blob by ID. (There is a similar action called 'Get blob content using path' if you need to get blob contents via paths.)
  3. Azure Function
    • We call an Azure Function with the content of the blob.

Unfortunately, this configuration does not work because of two errors:

  1. there is no array of blobs
  2. data type issues

Trigger & Test the Logic App

I use the Microsoft Azure Storage Explorer to upload files into the container of my Azure Storage account to trigger my Azure Logic App. In every try I increment the number of my test file. The test file contains a simple JSON which can be interpreted by my Azure Function.

After each upload I go back into the Azure Portal to look for new trigger events and shortly afterwards for new run events. To avoid flooding of my trigger history I disable the logic app after each upload to inspect the run results. Before each new try I enable the logic app again.

As you can see our first configuration of the Azure Logic App did not run successfully. Let's inspect the first error!

Error 1: No Array

What

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.

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.

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

23 November 2017

by

Summary

Handling data from Azure Storage blobs is not straightforward. The return value is binary (application/octet-stream) at first and needs to be casted into a data type you want to process; in our case into application/json.

This write-up is an easy to follow and real walk through of errors beginners may encounter handling Azure Storage blobs in Azure Logic Apps. It has happened to me.

Requirements

As soon a new file (blob) in an Azure Storage container arrives this file should be processed by an Azure Function app.

Preparing the Playground

1) Create a new Azure Storage Account.
2) Create a new container in the storage account.
3) Create a new Azure Logic App.
4) Design the Logic App.

Challenges

A first draft could look like this.

With this configuration we have three steps.

  1. When one or more blobs are added or modified (metadata only) (Preview)
    • Created a connection to the newly created storage account.
    • Configured to look in the container files.
    • Configured to look for changes every 10 seconds.
  2. Get blob content
    • Gets the content of a blob by ID. (There is a similar action called 'Get blob content using path' if you need to get blob contents via paths.)
  3. Azure Function
    • We call an Azure Function with the content of the blob.

Unfortunately, this configuration does not work because of two errors:

  1. there is no array of blobs
  2. data type issues

Trigger & Test the Logic App

I use the Microsoft Azure Storage Explorer to upload files into the container of my Azure Storage account to trigger my Azure Logic App. In every try I increment the number of my test file. The test file contains a simple JSON which can be interpreted by my Azure Function.

After each upload I go back into the Azure Portal to look for new trigger events and shortly afterwards for new run events. To avoid flooding of my trigger history I disable the logic app after each upload to inspect the run results. Before each new try I enable the logic app again.

As you can see our first configuration of the Azure Logic App did not run successfully. Let's inspect the first error!

Error 1: No Array

The return value of the first step is no array! If we look at the raw data, we see in the body that there is no array. Maybe this is an exception because we uploaded only a single file? Try again with two files at the same time.

Now, I upload two files at the same time.

Surprisingly, the Logic App gets triggered for each new file separately.

So my assumption was wrong that the action When one or more blobs are added or modified (metadata only) (Preview) returns an array. For me the property Number of blobs was somewhat misleading that the action would return an array.

We can resolve this error easily by removing the for-each-loop. We can design the flow of the Logic App in such a way that the Logic App gets triggered for each new or modified blob separately.

What Is Application/octet-stream How To Open

Let's try again by uploading a new file. Again, we see in the run history an error. This time the error is at the third step. The first two steps are running successfully, now. We were successful in getting the content of the blob which has triggered the Logic App. So far, so good! Let's explore the new error!

Even the raw data of the 2nd step looks fine.

Error 2: Data Type Issues

The Azure Function action in the third step throws the error UnsupportedMediaType with the message: 'The WebHook request must contain an entity body formatted as JSON.' That error may be confusing at first because our file contains pure JSON data. A look at the content type reveals that the Logic App does not know that we handle JSON data, instead it says something of application/octet-stream, which is a binary data type.

Application Octet Stream Download

The Azure Function gets the following raw input:

The raw output of the Azure Function action looks like this.

And for reference the function stub of the Azure Function looks like this:

Convert into JSON data type

The documentation states, that Logic Apps can handle natively application/json and text/plain (see Handle content types in logic apps). As we have already JSON data we can use the function @json() to cast the data type to application/json.

Unfortunately, this approach cannot be saved by the Logic App Designer.

Error message

Save logic app failedFailed to save logic app logicapp. The template validation failed: ‘The template action ‘ProcessBlob2' at line ‘1' and column ‘43845' is not valid: 'The template language expression ‘json(@{body(‘Get_blob_content')})' is not valid: the string character ‘@' at position ‘5' is not expected.'.'.

Fortunately, this only a small shortcoming of the Azure Logic App Designer. We need to look at the configuration in code view. For that reason click on the tree dots ... in the upper right corner of the Azure Function action and select Peek code in the menu.

We have to change the evaluation in the body property. It must not contain more than one expression wrapper @(). The documentation does not say explicitly how to nest expressions (see https://docs.microsoft.com/en-us/azure/logic-apps/logic-apps-workflow-definition-language#expressions), but after some trial and error, we know, we just need to remove the nested expression wrapper @{and } and leave everything else.

Check again, if it's working. Upload a new file.

What Is Mediatype.application_octet_stream

We check the run history, again, and all actions did run successfully. Let's check the raw input and output.

Raw input:

Raw output:

There is a difference in the input data of the Azure Function action, as there is no explicit content type, just pure JSON data.

Final Logic App

The final Logic App looks like this in the designer. Unfortunately, you don't see all expressions. You need to peek inside the code, as seen in the step before.

To see everything switch to code view. That's not nice to design, but it's good enough to check our configuration.

Helpful Links

Azure Logic Apps

Azure Function Apps

  • https://stackoverflow.com/questions/10399324/where-is-httpcontent-readasasync#=

What Is Binary (application/octet-stream)

tags:



broken image