I need to send an image from one computer to another across an internet connection. Currently I am converting the image contents into DIbits, using copymemory to convert those into a byte array, sending the array via winsock, buffering the data, reloading it into a DIbits array, and presenting the final image. This takes roughly ten seconds of sending, and I'm still having trouble with conversions.
I really need a fast way to send images, in the range of 1-3 seconds, ideally less than 1 second (although that's probably not possible). Is there any kind of method I could use? Thanks.