I know it, but I will not say it to you :-) No, now seriously -- try to explore class 'java.awt.image.PixelGrabber'.
Best regards. Radim > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED]]On Behalf Of Frank D. Greco > Sent: Saturday, June 22, 2002 1:23 AM > To: Advanced Swing Mail List (E-mail) > Subject: Byte Array from an Image? > > > 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 > _______________________________________________ Advanced-swing mailing list [EMAIL PROTECTED] http://eos.dk/mailman/listinfo/advanced-swing
