file transfer in a TCP/IP connection

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,

I'm making a client/server program which use a tcp/ip connection. Client and Server
have no problem to communicate by strings.
But I want to know if it is possible (and how) to send a file (acrobat reader file) with
a tcp/ip connection.

Best Ragards,

François Dehaibe
 
=?Utf-8?B?RGVoYWliZSBGcmFuw6dvaXM=?= said:
I'm making a client/server program which use a tcp/ip connection. Client
and Server have no problem to communicate by strings.
But I want to know if it is possible (and how) to send a file (acrobat
reader file) with a tcp/ip connection.

You can send anything you want by TCP. Its just a binary stream.


--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"


ELKNews - Get your free copy at http://www.atozedsoftware.com
 
If you use Socket classes in .Net they have Read/Write methods that accept arrays of bytes as parameers. In this way you may transfer binary data.
 
Cezary Nolewajka said:
If you use Socket classes in .Net they have Read/Write methods that
accept arrays of bytes as parameers. In this way you may transfer binary
data.

With Indy it has overloads for files, streams, bytes, and many other binary
and other types.

Its free too. It certainly makes socket work a LOT easier.


--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"


ELKNews - Get your free copy at http://www.atozedsoftware.com
 
Back
Top