How does one get a byte array out of an Image?

I'm trying to flatten an Image into a byte array (or a String)
for transport between machines (and between java/non-java so
I can't use serialization).

I created the Image from Toolkit.getImage(filename), but I
can't seem to determine how to convert it to a byte array.

I thought perhaps that I have to create a ByteArrayOutputStream
and writeObject() to it... but that doesn't feel right.

Any help is appreciated.

Frank
_______________________________________________
Advanced-swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/advanced-swing

Reply via email to