hi all
  i am new in android  i am implementing image retrieve in sdcard  in image
convert into bitmap and in bitmap convert in to byte array please forward
some solution of this code
        public void onCreate(Bundle savedInstanceState) {
            super.onCreate(savedInstanceState);
            setContentView(R.layout.main);
            ImageView image = (ImageView) findViewById(R.id.picview);
            EditText value=(EditText)findViewById(R.id.EditText01);
            FileInputStream in;
            BufferedInputStream buf;
            try {
                in = new FileInputStream("/sdcard/pictures/1.jpg");
                buf = new BufferedInputStream(in,1070);
                System.out.println("1.................."+buf);
                byte[] bMapArray= new byte[buf.available()];
                buf.read(bMapArray);
                Bitmap bMap = BitmapFactory.decodeByteArray(bMapArray, 0,
bMapArray.length);
               for (int i = 0; i < bMapArray.length; i++) {
System.out.print("bytearray"+bMapArray[i]);
}
                image.setImageBitmap(bMap);
                value.setText(bMapArray.toString());
                if (in != null) {
                 in.close();
                }
                if (buf != null) {
                 buf.close();
                }

            } catch (Exception e) {
                Log.e("Error reading file", e.toString());
            }
        }

    }
solution is

04-12 16:41:16.168: INFO/System.out(728):
4........................@435a2908this is the result for byte array
not display total byte array this array
size is 1034 please forward some solution
-- 
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.

Reply via email to