View Single Post
  #3 (permalink)  
Old 05-31-2008, 12:18 AM
vglass vglass is offline
Member
 
Join Date: Jul 2007
Posts: 14
vglass is on a distinguished road
In your code you have a comment that says:

"the number of bytes available on the stream"

How exactly are you determining the number of bytes available? The available() method is known to be unreliable, so this may be part of the reason your data is getting corrupted.

Also, you may want to avoid using Reader/Writer classes. If I remember correctly these are meant for character data and can corrupt file transfers.
Reply With Quote