file transfer in a TCP/IP connection

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
 
C

Chad Z. Hower aka Kudzu

=?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
 
C

Cezary Nolewajka

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.
 
C

Chad Z. Hower aka Kudzu

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top