Can I uncompress a bytestream that was compressed using the .NET GZipStream using the zlib library in C++?
You should be able to - use gzopen etc.
(The .NET GZipStream certainly should be writing "standard" gzip data, and zlib supports gzip, so...)
Related
I can't find any example code on using the Adobe XMP Toolkit for reading and writing XMP sidecar files.
I can read and write XMP tags into a JPEG file fine. So how do you do it with a sidecar file?
Anyone got some sample code to help?
I just figured it out.
Just read the XMP sidecar file into a buffer, and then use ParseFromBuffer() to parse the XML data, then use GetProperty() to get the tag I want.
I want to zip a already existing file in a directory, I am calling deflate method
int def(FILE *source, FILE *dest, int level) of ZLib library and I'm getting zipped file (making a file with .zip extension), but the problem is when I'm trying to unzip it by double clicking, I'm getting corrupted file though the return value is Z_OK.
PS: want to compress file not data. Any Help???
zlib does not produce the zip format. You would need to generate your own zip headers and trailers around the deflate compressed data produced by zlib.
I need to decompress an audio file through code using ffmpeg.
I have compiled FFMPEG for iOS with the link: http://lists.mplayerhq.hu/pipermail/ffmpeg-devel/2009-October/076618.html
Now I am not getting how to include ffmpeg in my xcode project? Which ffmpeg libraries to use?
Which methods to use for decompresson?
Please answer.
This should help:
http://www.inb.uni-luebeck.de/~boehme/using_libavcodec.html
More ffmpeg tutorials:
http://dranger.com/ffmpeg/ffmpegtutorial_all.html
https://github.com/mpenkov/ffmpeg-tutorial
Now I am not getting how to include ffmpeg in my xcode project?
Which ffmpeg libraries to use?
You need to add next libs to your project: libavcodec.a, libavformat.a.
If you plan use resampling audio add: libswresample.a.
And add ffmpeg folder to 'User header search paths' in build settings.
Which methods to use for decompresson?
for decoding: avcodec_decode_audio4
for resampling: swr_convert
Is there any open source tool to convert PDF to SWF other than pdf2swf tools?
pdf2swf uses "xpdf" to process PDF files.
You can try ImageMagic, it uses a different library (gscript) to process PDF files. You will have to convert to some intermediate format (like JPG/ SVG) and use a different tool to create SWF.
Have you tried SWFTOOLS? On Debian/Unbuntu:
sudo apt-get install swftools
pdf2swf filename.pdf
http://wiki.swftools.org/index.php/Examples#pdf2swf They have a Windows version, and the source so you can compile it on other Linux flavors
Can anyone point me to an Eclipse plugin for working with complex binary file formats such as TIFF, JPEG, PNG, etc? Ideally the plugin would allow the structure of the binary file to be described in detail and used to decode a file. Features such as structures, logical decisions, int/float/bool/flags expansion.