tag:blogger.com,1999:blog-5396570633771229267.post5771569684313566405..comments2024-03-03T14:43:52.399+01:00Comments on The BalusC Code: FileServlet supporting resume and caching and GZIPBalusChttp://www.blogger.com/profile/00299057045960008647noreply@blogger.comBlogger88125tag:blogger.com,1999:blog-5396570633771229267.post-59091111581461306602019-10-03T13:37:56.618+02:002019-10-03T13:37:56.618+02:00The PDF download being interrupted, above, is due ...The PDF download being interrupted, above, is due to the PDF being linearized. In general this is a good thing; acrobat will only download what it needs, rather than the whole file. To disable it, ensure the server does NOT include "Accept-Range: bytes" in its headers.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-8097062829989455502017-10-30T06:03:57.614+01:002017-10-30T06:03:57.614+01:00@Balusc, I am huge fan of you stackoverflow answer...@Balusc, I am huge fan of you stackoverflow answers. Also, I have used this in one of my project. <br />I wonder, what if we have to add support of encryption or decryption in this? How can we achieve this?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-53511565045045086532017-10-11T21:54:50.138+02:002017-10-11T21:54:50.138+02:00See your solution in 2017 nearly after an decade ,...See your solution in 2017 nearly after an decade ,<br />Really thanks man for the whole code and the extremely useful explanation.<br />Now-a-days there would be libraries for this but your solution explain actually how the range and ETag header works in real world scenarios .<br /><br />Really appreciated please keep writing these king of post.Anonymoushttps://www.blogger.com/profile/08082869046883320498noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-31042203338615598292017-09-26T20:56:06.795+02:002017-09-26T20:56:06.795+02:00Can anyone explain this comment:
// Ignore IOExce...Can anyone explain this comment: <br />// Ignore IOException. If you want to handle this anyway, it might be useful to know<br />// that this will generally only be thrown when the client aborted the request.<br />The ClientAbortException occurs while downloading videos of file sizes greater than 2MB but the client runs the video without any issues. The client can be the browser or Android adb Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-82278723689224926362016-05-13T08:16:44.146+02:002016-05-13T08:16:44.146+02:00Any idea about Resumable upload using standard htt...Any idea about Resumable upload using standard http protocolAnonymoushttps://www.blogger.com/profile/00329708514074092957noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-63765704208952115392016-04-20T10:50:31.610+02:002016-04-20T10:50:31.610+02:00Hi Bauke
I would really appreciate your input reg...Hi Bauke<br /><br />I would really appreciate your input regarding a problem I have experienced with this class.<br /><br />http://stackoverflow.com/questions/36719434/duplicate-headers-in-response<br /><br />Sorry for contacting you like this :)Williehttps://www.blogger.com/profile/07824270276382751613noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-49516662699391833702015-09-29T11:28:27.693+02:002015-09-29T11:28:27.693+02:00I am very impressive by this solution!
It works fi...I am very impressive by this solution!<br />It works fine!!<br /><br />Thank you!!!lab4https://www.blogger.com/profile/01959371832849318975noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-91087900511149649702015-06-24T02:09:08.947+02:002015-06-24T02:09:08.947+02:00Fuck Yeah!!!
Thank you very much!!
Your code rocks...Fuck Yeah!!!<br />Thank you very much!!<br />Your code rocks!!Anonymoushttps://www.blogger.com/profile/01224247197129845129noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-68629677457816717332015-02-11T01:24:57.049+01:002015-02-11T01:24:57.049+01:00Balusc, hi.
Excelent job, as usual.
How i can secu...Balusc, hi.<br />Excelent job, as usual.<br />How i can secure my resources provided from this servlet??<br /><br />Using web.xml security procedures??Rafael Sordihttps://www.blogger.com/profile/14856362126851461451noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-74943907739488692522015-01-19T14:57:16.586+01:002015-01-19T14:57:16.586+01:00Hi BalusC
Thanks for this great article.
I tried ...Hi BalusC<br />Thanks for this great article.<br /><br />I tried to use it, Here your code saying downloading a file but in my scenario streaming video and play in browser. I think server side code is almost same but how can i send range headers from client side that is from Html5 video tag.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-38605606867605542522014-12-22T19:31:02.472+01:002014-12-22T19:31:02.472+01:00Please help me, My problem is to stream .mp4 with ...Please help me, My problem is to stream .mp4 with Your code and it is almost done properly, but the stream is always corrupted at the end of a movie ex.: film is 57mins long - on 52 second fail occurred with message: "A network error cause the stream fail part way.", I've tried to test it several times, thought that it was really network problem - but it always the same.Zeushttps://www.blogger.com/profile/01865499828492934804noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-17098493903493607112014-11-07T19:31:20.844+01:002014-11-07T19:31:20.844+01:00How can I modify this to get the parameter from th...How can I modify this to get the parameter from the URL? My videos are hosted in another server and I'd like to just pass the URL with a parameter (don't really mind about the IE issue for the moment)<br /><br />Thanks!Anonymoushttps://www.blogger.com/profile/05380234920333023541noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-20148942396567058452014-07-06T10:09:29.385+02:002014-07-06T10:09:29.385+02:00Found it, added MIME types for videos like mp4 and...Found it, added MIME types for videos like mp4 and such in he web.xml cause IE doesn't support the application/octet-stream MIMEtype for video streaming.<br /><br />Thank you :)Mohamad Hosafyhttps://www.blogger.com/profile/00199169070302289787noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-4109731019727185422014-07-01T15:20:30.270+02:002014-07-01T15:20:30.270+02:00Couldn't run this to stream videos (using HTML...Couldn't run this to stream videos (using HTML5 Video tag) with IE9 or IE11, can you please help out with this ?<br /><br />Thank you so much, great jobMohamad Hosafyhttps://www.blogger.com/profile/00199169070302289787noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-57938565882607794102014-07-01T15:19:01.658+02:002014-07-01T15:19:01.658+02:00This comment has been removed by the author.Mohamad Hosafyhttps://www.blogger.com/profile/00199169070302289787noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-45765243283602789352014-05-25T07:21:56.817+02:002014-05-25T07:21:56.817+02:00i used this servlet with html5 audio
i am gettin...i used this servlet with html5 audio <br /><br />i am getting pipe broken exception when i play the audio using html5 audio player.<br /><br />give me a solution to resolve this issue<br /><br />thanks in advance,<br /><br />-Anandanand's bloghttps://www.blogger.com/profile/09980035082192501734noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-38954926166322693922014-02-10T16:18:17.522+01:002014-02-10T16:18:17.522+01:00Has anyone experienced any problems using this cod...Has anyone experienced any problems using this code with PDFs and IE?<br /> <br />What we are seeing is the download proceeding normally in chunks and then being interrupted by the server presumably due to a bad byte range or other header issue. <br /><br />We've seen this problem with some PDF files (not all) and several different versions of IE including IE 9.qrshttps://www.blogger.com/profile/10088855234530238230noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-30947531326654243682013-12-13T11:12:41.050+01:002013-12-13T11:12:41.050+01:00Hi BalusC,
Thank you so so so much......
Thanks...Hi BalusC,<br /> Thank you so so so much......<br /> <br />Thanks for sharing this article.Anonymoushttps://www.blogger.com/profile/01896575286410167236noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-74049699665420843762013-09-23T10:14:59.875+02:002013-09-23T10:14:59.875+02:00Hi BalusC,
COuld you please share the java client...Hi BalusC,<br /><br />COuld you please share the java client code for this fileservletAnonymoushttps://www.blogger.com/profile/06422309851518892469noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-67936504421118383392013-09-23T10:13:16.314+02:002013-09-23T10:13:16.314+02:00Hi BalusC,
COuld you please share the java client...Hi BalusC,<br /><br />COuld you please share the java client code for this fileservletAnonymoushttps://www.blogger.com/profile/06422309851518892469noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-509250573859262042013-09-20T12:25:42.192+02:002013-09-20T12:25:42.192+02:00Hi BalusC
could you please put the java code whic...<b>Hi BalusC</b><br /><br /><a rel="nofollow">could you please put the java code which can upload say xml file using resume option</a><br /><br /><i>Sha</i>Shashahttps://www.blogger.com/profile/03075272231389197443noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-71167199497182163732013-09-20T12:23:10.375+02:002013-09-20T12:23:10.375+02:00This comment has been removed by the author.Shashahttps://www.blogger.com/profile/03075272231389197443noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-23127024823569098022013-06-01T13:08:21.574+02:002013-06-01T13:08:21.574+02:00Hi, i have problem only with firefox.
Firefox no...Hi, i have problem only with firefox. <br /><br />Firefox not send the header "If-None-Match" or "If-Modified-Since" header.<br /><br />help pls ;(Michele (nikhes)https://www.blogger.com/profile/04176419159600308278noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-80313187726970769372013-05-30T16:55:26.724+02:002013-05-30T16:55:26.724+02:00Hi BalusC, can you please clarify the license deta...Hi BalusC, can you please clarify the license detail " You're free to make changes whenever needed as long as it's not for commercial use."<br />If we want to make changes and we want to use commercially, what then?cgullcharliehttps://www.blogger.com/profile/17571142214582977052noreply@blogger.comtag:blogger.com,1999:blog-5396570633771229267.post-35751134178014312332013-05-25T17:45:50.438+02:002013-05-25T17:45:50.438+02:00Thanks BalusC. I needed a servlet that could serv...Thanks BalusC. I needed a servlet that could serve up wav files from a database with partial content support so they work in the HTML5 audio tag. With a little modification, this worked perfectly!Anonymoushttps://www.blogger.com/profile/18029662465015574033noreply@blogger.com