Application Octet Stream Encoding

4/20/2019
    32 - Comments

I have a servlet that sends a file to the browser. Smart driver updater reviews.

I send this headers in the servlet. Prayer for school program.

Then i send the file to the browser, but i'm having troubles with the file encoding. The content of the file is UTF-8 but i don't know how to send a header for this.

Does anyone have idea how can i do?

Diljit Dosanjh songs mp3 download, Diljit Dosanjh all song Diljit Dosanjh best songs albums new, Diljit Dosanjh songs download. Diljit Dosanjh all songs 2018, Diljit Dosanjh top 10 songs, Diljit Dosanjh full albums & new songs. Diljit Dosanjh latest mp3 albums free download, Diljit Dosanjh. Sinhala songs mp3 download. Diljit Dosanjh Songs Download- Listen to Diljit Dosanjh MP3 songs free online. Play Diljit Dosanjh Punjabi new songs and download Diljit Dosanjh hit songs.

IgnacioIgnacio

2 Answers

There is no need to tell the browser that the file is UTF-8 encoded. By setting the content type to application/octet-stream, you specify that the file must not be interpreted, and may not be plain text at all.

If you absolutely want to declare an encoding, stop declaring the file as application/octet-stream, and declare it as 'text/plain; charset=utf-8' instead.

Martin v. LöwisMartin v. Löwis
Gursel KocaGursel Koca

Not the answer you're looking for? Browse other questions tagged javaservletsencoding 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:
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?