Android Question java.lang.RuntimeException: Error loading bitmap.

ArminKH

Well-Known Member
hi
i want to download an image by http utils and after Job.Download...... JobDone event raised successfuly
but then immediately this error happen
upload_2015-10-26_0-35-58.png


the error line is into the httputils library
!!!!!!!!!!!!!!!!!!!!!!1
 

ArminKH

Well-Known Member
The error happens in the LoadBitmap call. The bitmap is corrupted or the format is not supported.
Ok,so how is this possible to know the bitmap is corrupted or not?
My image is healthy and is .png
This error happen because i'm using a free web hosting
This web host give us a direct link to files but when i entere that in a browser then the img just shown like a "echo" in php and not show any download dialog
 
Upvote 0

miguelconde

Member
Licensed User
Longtime User
Hi erel,
I have the same error. I have this from my php script Header( "Content-type:image/jpeg");
and the image file "file.jpg". The error ocurred only with jpg files.

When i use png files and the Header( "Content-Type: image/png"); run fine.

do you know something about it, is there a problem httputils and with the jpg files

I am using okHttp okHttputils2 version 2.20

Thank you
 
Upvote 0
Top