1

Possible Duplicate:
how to store image in sqlite database

enter image description herei want to tack signature in android application & Store in in Sql DataBase Using >net Web Service Can AnBudy Tell Me It Is Possible Or Not?

i tryed this Code But It Didn't Work

hbitmap =  Bitmap.createBitmap (mContent.getWidth(), mContent.getHeight(),   Bitmap.Config.RGB_565);

ByteArrayOutputStream baos = new ByteArrayOutputStream(); 
hbitmap.compress(Bitmap.CompressFormat.JPEG, 100, baos);
b=baos.toByteArray();
XpresionHome.by=b;


String image=Base64.encodeToString(by,Base64.DEFAULT);

It Sote In Database But The Result Of Converting Byte To String & String To Byte Is Diffrent

Community
  • 1
  • 1

0 Answers0