hi all
i am implementing photoimage in upload image in sdcard retrieve image in
byte convertion please help me urgent i am getting image in image in byte
convertion i am implemented this code i am new in android some solution
File f = new File("/sdcard/DCIM/1.jpg");
FileInputStream is = null;
is = new FileInputStream(f);
Bitmap bm;
bm = BitmapFactory.decodeStream(is,null,null);
ByteArrayOutputStream baos = new ByteArrayOutputStream(1000);
bm.compress(Bitmap.CompressFormat.JPEG,75, baos);
ImageView pic=(ImageView)this.findViewById(R.id.picview);
pic.setImageBitmap(bm);
--
Thanks & Regards,
KVL Narasimha Rao.
Contact No: +91 9912656178
--
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
To unsubscribe, reply using "remove me" as the subject.