zetbaitsu / Compressor

An android image compression library.
7.08k stars 963 forks source link

Returned 0 bytes file #6

Open abhisheksachdeva opened 8 years ago

abhisheksachdeva commented 8 years ago

Hi, I used custom compressor (same as given in your example) but it returned an image of 0 bytes. When i removed .setDestinationDirectoryPath(Environment.getExternalStoragePublicDirectory( Environment.DIRECTORY_PICTURES).getAbsolutePath()) It worked! I am using android 4.4.2 What can be the possible reasons for this? Thanks

bhargavms commented 8 years ago

Do you have permission to write to external storage?

abhisheksachdeva commented 8 years ago

Yes. I had added permissions to read and write in manifest.

af913337456 commented 7 years ago

Do they often happen in your app ? or does it have a probability?

abhisheksachdeva commented 7 years ago

Actually, After this issue, I had removed that part. So, It never happened again.