Sockets and binary files ( like picture )

How can i send a binary file ( like a picture ) using sockets.
If you can add a sample it will be the best.


                               Thanks.
sectorAsked:
Who is Participating?
 
jhanceConnect With a Mentor Commented:
You can send any kind of data (ASCII, binary, executables, etc.) via the sockets interface.  The transport doesn't care what you send.  It just sends what you give it to send and (if using TCP) ensures reliable delivery.

Is this a homework problem or something?
0
 
abdijCommented:
Hi,
 What is the platform u are using. (Windows VC++ 6.0???). Also if possible explain your problem better. Ofcorse it is explained but can you highlight your method of using the sockets???

Bye
Abdij
0
 
abdijCommented:
Hi,
 jhance is right. For further info on Sockets here is a URL:
1. http://www.medusa.uni-bremen.de/intern/knowhow/winsock

Ofcourse there are others.

Feel free to ask.
Hope this is useful.
Bye,
Abdij
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
sectorAuthor Commented:
Can you show me a samples in C++ ( VS 6, NT 4) of how do i read a jpg file from the disk and send it to using sockets ?
0
 
jhanceCommented:
Not for 50pts.
0
 
sectorAuthor Commented:
I will give you 100 pts.
0
 
sectorAuthor Commented:
Another question in the same area , if i have a binary file with the size of 128K for example and i want to send it with socket that the limitation is 64K if i recall , how to do it ???
0
All Courses

From novice to tech pro — start learning today.