read from client and save to a folder in server

Hi.

I have written a server.

Now in the process of writing client.

Say i send a file to server called myFile.pdf and wish to save it to a directory in server. How can I save this file with it's content and name to my server?

Thanks.
This question is leaning toward being platform dependent OP. Basically you would catch the data being sent, the same way you would capture any other data being sent to it, and save that data to an array or container of some kind. Then you would take that array and turn\copy it into a file\memory map. From there it's as easy as writing any other file to the disk. Keep in mind that this is a very generic description OP, so get back to us with those specifics and we'll be able to help you out more.
Topic archived. No new replies allowed.