Http file transfer ("exe")

  • Thread starter Thread starter uballing
  • Start date Start date
U

uballing

I am writing a "Windows Update" type application where via Web Services the client checks with the Server if he needs to download a newer version of a set of DLLs and EXE

If there is a newer version, I need to download the file from the server to the client
I wonder what is the best way to download a EXE without executing it when it arrives on the client

I have tried to using WebRequest and WebResponse, Stream, BinaryReader and BinaryWriter to do it, but got kinda stuck with it.. Can anyone tell me if i am on the right track and maybe show me an exemple on how to transfer "exe" files via http or redirect me to a site with information on transfering exe files and not txt files

/Ulri
 
I am writing a "Windows Update" type application where via Web Services
the client checks with the Server if he needs to download a newer version of
a set of DLLs and EXE.
If there is a newer version, I need to download the file from the server
to the client.
I wonder what is the best way to download a EXE without executing it when
it arrives on the client.
I have tried to using WebRequest and WebResponse, Stream, BinaryReader and
BinaryWriter to do it, but got kinda stuck with it.. Can anyone tell me if i
am on the right track and maybe show me an exemple on how to transfer "exe"
files via http or redirect me to a site with information on transfering exe
files and not txt files.

http://www.atozed.com/indy/Demos/Indy10.iwp

Intro Stream demo. Give it an hour or so as Im updating it to refelect
namespace changes.

It uses Indy, but its free and open source:

http://www.indyproject.org/indy.html
 
Back
Top