Click here to Skip to main content
15,886,919 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have Server socket program written which is sending images continuous to client, listening over TCP/IP , My problem is that it is consuming lots of bandwidth on server side, does any one how to make it consumes low bandwidth,
Posted

You cannot send data without consuming the bandwidth, can you?

If your only concern is bandwidth usage, you should then compress the data and send it (which the client must decompress to use). But this would come with the added cost of computation to do the compression and decompression.
 
Share this answer
 
I know bandwidth consumption is required, but my concerns is its very high, around 600Kbs for one client, any other way i can reduce this bandwidth consumption without compression. Any property setting for JVM or ServerSocket, Is there anyway i can reduce the quality of images to 16 bit or 256 bit colors so that images size reduces,
 
Share this answer
 
v2
Of course there are many ways to reduce the quality of images or compress them. Please search this site for articles on image compression and manipulation.

If your images are already compressed, there's little scope for this. If you're sending the same data to multiple clients simultaneously, you might consider multicasting (given the circumstances are suitable for that).
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900