Skip to main content

Packing byte data

2 replies [Last post]
Joined: 2008-02-15

I am working on a project where we make a Http call to a web
service to upload and download an image. We have multiple images and
we need to pack all of them before we make an http call to upload.
Similarly, if we want to download an image of a desired size, we
download the whole object by making a Http call, unpack it and pick
the image of desired size.

I want to know if there is any open source API for packing/unpacking bytes of information.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2012-06-29

Have a look here for a fully working example of how to handle zip files and folders using the Apache Commons library. Definitely makes life a lot easier:

Joined: 2004-05-06

Zip file support is included in JDK:
(ZipInputStream and ZipOutputStream for creating/reading ZIP files)

TAR file support in Jakarta commons compress: