I'd look at fileUri.toString() Looks suspicious. It might be putting file:// in front of the path or something like that.
On Monday, August 13, 2012 11:31:17 AM UTC-5, user123 wrote: > > Hi, > > I have a jpg with a white background, and after saving and loading it to > external storage, it's corrupted. Looks like: > > > <https://lh6.googleusercontent.com/-9vcaZSUl50o/UCkrum2278I/AAAAAAAAAAM/mPPofE7qhrk/s1600/img.jpg> > > The code: > > Save: > > try { > outStream = new FileOutputStream(fileUri); > image.compress(Bitmap.CompressFormat.JPEG, 100, outStream); > outStream.flush(); > outStream.close(); > > } catch (Exception e) { > Log.e("cache", e.getMessage()); > e.printStackTrace(); > } > > Load: > > Bitmap bm = BitmapFactory.decodeFile(fileUri.toString()); > > What am I doing wrong? Thanks. > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

