02-14-2013 06:19 AM
I am trying to extract a zip file from a server location and save in SDCard.The zip file contains some xml and images.I am able to save the xml files properly in the SDCard,but with images,they are saving with the same name,but when i try to open the images,it says "File corrupted or damaged".Which means my writing of images to SDCard is not proper.FYI i am using zipme as third party lib for zip extraction.Can anybody help me to get the image part done?
02-14-2013 09:02 AM
02-14-2013 09:28 AM
I had problems with ZipMe corrupting large files, in fact anything over about 4K.
You might find the code provided here does the job:
Becuase it uses the builtin in decompression rather than Java, it should also be a lot faster.