If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Re: Winsock - sending a picture failed.

Why are you trying to assemble the whole buffer before you write to file? Why not first open the file and then append each chunk read to the file?

You can't use strcat as the buffer may contain a zero.

if you want to assemble the whole buffer first before writing to file, allocate memory for the whole buffer first then pass to recv the address of the part of the buffer into which you want the next chunk read. ie 0 for first pass, BytesReceived for second pass etc etc.

All advice is offered in good faith only. You are ultimately responsible for effects of your programs and the integrity of the machines they run on.

* The Perfect Platform for Game Developers: Android
Developing rich, high performance Android games from the ground up is a daunting task. Intel has provided Android developers with a number of tools that can be leveraged by Android game developers.

* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.