Hello, I've written a program using windows sockets to connect to a website and download a JPG.

My program connects to the IP, recv()'s the data, and prints it to a file.

The only thing that isn't working is that something is going wrong with TAB, CR, and LF.

When I compare the actual file, with the file my program downloaded there are extra tabs and carriage returns, and the JPG doesn't work.

Does anyone know what could have gone wrong?

Thanks.