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

Popular posts from this blog

java - SSE Emitter : Manage timeouts and complete() -

jquery - uncaught exception: DataTables Editor - remote hosting of code not allowed -

java - How to resolve error - package com.squareup.okhttp3 doesn't exist? -