Hi, first of all I want to thank everybody on this list. In the 2 weeks I have been subscribed I have learned a lot about Java2D. And I am at least capable of doing with it what I need. Also I would like to thank everybody that reacted on my mail about BufferedImages, now I am able to do what I need.
 
but....
 
In my program I need to send image-data over the network through RMI. When changing my program to incorporate Java2D I changed the Object I send over the net, it now includes a DataBufferUShort. But to my great surprise I found out that a DataBufferUShort is non-Serializable. Is there any good reason for this ?? I mean as far as I can see, it only needs to consist of a short[], and some integers telling the size, and number of banks. Or am I thinking too simple. If I go ahead and just send a short[] over the net, then I will copy the data in the array when making a new DataBuffer, thereby increasing the memoryneed of my program :-( (I can not delete the object I am sending over the network) Is it simple to create my own DataBufferUShort which is Serializable, or will that have performance problems ??
 
TIA
 
D�nis Riedijk

Reply via email to