I am trying to transmit an Image object through a Socket connection in Java. The only thing I may be missing is how to get an image size in bytes so I know how many bytes are being transferred over the Socket.
I have the ServerSocket and Client working transferring data, and I have a cut-paste image working from a client Applet, and I have a Java program that saves Images to disk as JPEG/PNG.
How do you get the byte size of an Image object in Java?... or do you know of source code to a program that transferes images through Sockets?
Thanks,
Jon
I have the ServerSocket and Client working transferring data, and I have a cut-paste image working from a client Applet, and I have a Java program that saves Images to disk as JPEG/PNG.
How do you get the byte size of an Image object in Java?... or do you know of source code to a program that transferes images through Sockets?
Thanks,
Jon