Reputation: 1169
Supposedly, using my application I take a few images which will be saved at a particular directory and saved as JPEGs.
IS it possible to pack these images together? Like into a video or tar or zip? So that I can send send these images to a backend (E.g. web server).
Is this possible? Or I could only send them 1 by 1?
Thanks In Advance, Perumal
Upvotes: 2
Views: 633
Reputation: 109237
For making video files from images you have to use any video codec library like FFMPEG or anything else..
But for creating .zip archive..
Android has a in-built class ZipOutputStream
support of java.util.zip package.
This class provides an implementation of FilterOutputStream
that compresses data entries into a ZIP-archive output stream.
ZipOutputStream
is used to write ZipEntries
to the underlying stream. Output from ZipOutputStream
conforms to the ZipFile
file format.
Also look at this article this may be help you..
Zipping Files with Android (Programmatically)
Upvotes: 1