Compressor
Compressor copied to clipboard
io exception why ??
File filepath = new File(file.getPath());
Bitmap thumb = new Compressor(this).compressToBitmap(filepath);
I am converting uri to file and then compressing to bitmap but it showing I0-exception
cannot convert file to bitmap
It would be more helpful if you give some crash stack trace. Possible causes would be: The file is not opened properly from URI. File not readable some times. If you give some code regarding converting URI to file that will also help to find the issue.
It is not crashing but it is not letting me to do
When I convert URL to file path it shows red line and says io exception
Possible causes:
- File does not exist
- Storage permission not enabled
I am using the library and works great.