[android-developers] Re: image on sd card
You need to use:
yourbitmap.compress(Bitmap.CompressFormat.PNG, 100, out); //PNG better
supported, you will see a loss of quality if you use JPEG
where "out" is your FileOutputStream with the file's destination
you can get it back with BitmapFactory.decodeStream(in, null, null);
where "in" is your InputStream...
Hope it helps!
Alberto
On Feb 27, 4:32 am, Dan <danieljonharring...@gmail.com> wrote:
> I am going to be saving some jpeg images to the sdcard and I don't
> know the best way to get those images back off, one at a time. They
> will be in a folder named /sdcard/images/ I will just need one image
> at a time, so this folder will act more as a cache of images pulled
> from the web that will be used in the application. Therefore, I can't
> just put them in the res/drawable folder because I won't know which
> images they are beforehand. Thanks for any help on the subject.
--
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home