07-06-2007, 11:05 AM
Knows Where the Search Button Is
Join Date: Aug 2006
Post Thanks: 0
Thanked 0 Times in 0 Posts
Thanks for the suggestions Rose. OutputStream ignores the top 24-bits so it won't work. However, DataOutputStream can output integers. Although I am able to output the raw data, I am now encountering the problem of displaying the image.
The getARGB function returns a rather large data array without a Bitmap header. Consequently, the receiver cannot view the image. Is there a means to serialize the Bitmap object as a data array or does anyone have code for converting an image from a raw file to a bitmap, jpeg, png, etc?
Basically, the end goal is to send a Bitmap/Image object to someone else through either email or mms. I'm thinking that I may have to write a function to add back the header information but perhaps someone has a better solution? Thanks.
Last edited by Californium : 07-06-2007 at 01:04 PM.