The response of application/octet-stream type is obtained through ajax. How can it be parsed?

the content of the file is obtained through ajax. The response class type is application/octet-stream,. The content is garbled. Is there any way to parse it at the front end?

Mar.20,2021

application/octet-stream is the default unknown type. It can't be parsed unless you know exactly what type it is.


application/octet-stream data cannot be parsed correctly unless you know exactly what format it is.
for example, it may be passed string data or passed binary data, so you can't tell the difference just by application/octet-stream .
so the use of application/octet-stream data is generally used in development where front and back ends can coordinate.

Menu