--
Zip is not suitable for streaming. You may use gzip instead.
--
--
Zip is not suitable for streaming. You may use gzip instead.
28 Ara 2012 16:58 tarihinde "Gaëtan Renaudeau" <renaudea...@gmail.com> yazdı:
>
>
>
>
> 2012/12/27 <fehmica...@gmail.com>
>>
>> Zip is not suitable for streaming. You may use gzip instead.
>>
>>
>>
>> http://stackoverflow.com/questions/4797315/rails-on-the-fly-streaming-of-output-in-zip-format
>>
>> http://stackoverflow.com/questions/6225488/java-stream-contents-of-zipfile-via-http http://en.wikipedia.org/wiki/ZIP_(file_format)#Structure
>
>
>
> Well, sorry to disagree, but we've made Zip Streaming working fine on Play 2, http://blog.greweb.fr/2012/11/play-framework-enumerator-outputstream/
> BTW, you can create a zip with a OutputStream so what is the reason you can't use it for streaming?
As explained in the links I have given, whole zip file must be created and stored in the memory before streaming -when using OutputStream-. Yes you can stream but you cannot create and stream large zip files practically.
> --
>
>
If Erin's method is working there should be smth wrong with the docs. Does anybody have a clear idea about zip file format and its variations?