PC Review


Reply
Thread Tools Rate Thread

file transfer in a TCP/IP connection

 
 
=?Utf-8?B?RGVoYWliZSBGcmFuw6dvaXM=?=
Guest
Posts: n/a
 
      3rd Feb 2004
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
 
Reply With Quote
 
 
 
 
Chad Z. Hower aka Kudzu
Guest
Posts: n/a
 
      3rd Feb 2004
"=?Utf-8?B?RGVoYWliZSBGcmFuw6dvaXM=?=" <(E-Mail Removed)> wrote in
news:6031BB86-6FE1-4E05-A4F0-(E-Mail Removed):
> 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

 
Reply With Quote
 
Cezary Nolewajka
Guest
Posts: n/a
 
      3rd Feb 2004
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
mailto:c.nolewajka-no-sp-am-(E-Mail Removed)
remove all "no-sp-am-eh"s to reply

"Dehaibe François" <(E-Mail Removed)> wrote in message news:6031BB86-6FE1-4E05-A4F0-(E-Mail Removed)...
> 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

 
Reply With Quote
 
Chad Z. Hower aka Kudzu
Guest
Posts: n/a
 
      4th Feb 2004
"Cezary Nolewajka" <c.nolewajka-no-sp-am-(E-Mail Removed)> wrote in
news:(E-Mail Removed):
> 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

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Application with modem connection to a PC for transfer file =?Utf-8?B?UmFmZmFlbGxh?= Microsoft Dot NET Compact Framework 0 13th Feb 2005 05:17 PM
Direct Connection for file transfer =?Utf-8?B?Um9keQ==?= Windows XP New Users 3 22nd Jan 2005 05:53 PM
file won't transfer...blocked connection =?Utf-8?B?RG9u?= Windows XP Messenger 1 15th Mar 2004 10:59 PM
Direct Cable Connection for File Transfer from W-95 to W-XP =?Utf-8?B?RGFuIENvcmNvcmFu?= Windows XP Networking 0 28th Feb 2004 04:46 AM
Dial up Connection and file transfer in VB .Net Brian Holbroook Microsoft Dot NET 0 17th Dec 2003 07:34 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:32 PM.