Read zip file from channelbuffer

Marc-André Laverdière marcandre.laverdiere at gmail.com
Thu Jun 30 01:27:12 EDT 2011


Hi,

There are some APIs in Java to operate on zips as streams. You can
always wrap the binary buffer into a ByteArrayInputSteam, and then
read that in a ZipInputStream.

On 6/28/11, emanuele <emanuele.g at gmail.com> wrote:
> Hi Guys, I m new of netty. Thanks to the forum I succeed to write the
> HttpResponse into a file (a zip archive). I was wandering if is possible to
> unzip while reading.. In order to write I ve used
>
> int r = buf.readableBytes();
> buf.readBytes(raf.getChannel(), r);
>
> Could somebody please help me.
>
> than ks
>
> --
> View this message in context:
> http://netty-forums-and-mailing-lists.685743.n2.nabble.com/Read-zip-file-from-channelbuffer-tp6524560p6524560.html
> Sent from the Netty User Group mailing list archive at Nabble.com.
> _______________________________________________
> netty-users mailing list
> netty-users at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/netty-users
>


-- 
Marc-André LAVERDIÈRE
"Perseverance must finish its work so that you may be mature and complete,
not lacking anything." -James 1:4
http://asimplediscipleslife.blogspot.com/
mlaverd.theunixplace.com



More information about the netty-users mailing list