I have and application that uses TCP Sockets to send data over to a second app, in this case images in form of byte[], I'm already compressing the bytes, but I'm wondering if there is a way to cache the bytes and compare the new bytes changes, and only send those the difference (the new changes)?, this way I can reduce the data I send. The sending intervals is 50 milliseconds
I'm capturing Bitmaps saving the MemoryStream to format .png, then I'm compress the bytes using GZipStream before sending to TCP, but the average image bytes is 150000, and for both the sending the receiving applications it's taking a lot of memory to handle it seems.
Note: I'm not posting any of my code as this is just a question based on facts.
Any inputs or ideas are greatly appreciated.
Thanks.