I开发者_高级运维 have to send an image over a socket . so I, the client convert the image to a bytearray and send it as such.
The server.. being the applet recieves the byte array. - fine till here.
I must use Java 1.3 so NO ImageIO or Image classes.
and then since we have an applet - no fileoutputstream
Any other ways??
Toolkit.getDefaultToolkit().createImage(byte[] imagedata,
int imageoffset,
int imagelength)
It returns Image and it's available @since JDK1.1 according to javadoc
精彩评论