java - BitmapFactory.decodeFile() returns null value for a camera picture -
i have android app go camera activity , take photo, , execute following code:
string s1 = file_uri.getpath(); bitmapfactory.options options = new bitmapfactory.options(); options.injustdecodebounds = true; bitmap = bitmapfactory.decodefile( s1, options); bytearrayoutputstream stream = new bytearrayoutputstream(); bitmap.compress(bitmap.compressformat.jpeg, 50, stream);
where file_uri image path phone storage (it not null) bitmap variable null. why?
your image may big , out of memory
Comments
Post a Comment