Thanks for replying, I have a few more questions:
> InputStream is = ImageUploadManager.getImageFromServer(imageName); In what format does the image comes from the "ImageUploadManager"? > [] bb = (is.toString()).getBytes(); Second, it doesn't seems right to me to use for it seems that you're converting: you might want to do: byte[] byteArray = new byte[is.available()]; is.read(byteArray); is.toString() won't give you the contents of the inputstream (at least, not always). Hope it helps, Hugo Veiga On Oct 17, 2008, at 12:00 PM, Sudharani K wrote: > My code is like > InputStream is = ImageUploadManager.getImageFromServer(imageName); > byte > > [] bb = (is.toString()).getBytes(); > Long returnval = sqlTable.insert(imageName,bb); > > in the insert method() > > { > > ContentValues initialValues = > > new ContentValues(); > > initialValues.put( > > FIELDID, val); > > initialValues.put( > > FIELDName, val1); > > return mDb.insert(DATABASE_TABLE, null, initialValues); > } > > agian when I am reading the content and getting the byte and > converting to bitmap using > > byte > > [] bb = imageCursor.getBlob(1); > imageStream[i] = new ByteArrayInputStream(bb); > > imageShow = BitmapFactory.decodeStream( > > imageStream[position]); > its showing > > skia:xxxxxxxxxx exception > > Plz help me > > I am using 1.0sdk > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Android Beginners" group. To post to this group, send email to android-beginners@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/android-beginners?hl=en -~----------~----~----~----~------~----~------~--~---