Avatar of Engwi
Engwi
 asked on

Sockets and Streams

Greetings

How do I go about transfering a file from the server to the client via sockets upon request from the client.

Would this involve streams ? Any pointers or code would be more than welcome.

Thanx in advance.
Delphi

Avatar of undefined
Last Comment
emadat

8/22/2022 - Mon
emadat

Look at the sample application at:
http://www.tietovayla.fi/BORLAND/delphi/FILES/fileserv.zip

You will find more description under Delphi 3.0, demo #12 at:
http://www.tietovayla.fi/BORLAND/delphi/d_files.htm

Emad
Amir Azhdari

listening
Engwi

ASKER
emadat,

Thanx , that demo helped alot ! Another question though , I now receive the file back from the server and well in a String buffer.

How would I go about writing the file to the harddrive on the client side. Would I use the write methods of the TFileStream class ? What would be the best way to handle this.

Thanx in advance.
Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
ASKER CERTIFIED SOLUTION
emadat

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.