Solved

copying files over sockets

Posted on 2004-08-08
7
170 Views
Last Modified: 2010-04-23
hi i have a vb.net program that i want to update files when a new one is available

what i have is a server program with the new .exe file on it and a client program on another computer.

i want to use sockets to transfer the data.

i can already send plain text and that works fine but when i come to transfer a file i cannot get it to work

i need to break the file down then send it bit by bit to the other computer

does anyone have any idea how to do this

thanks
0
Comment
Question by:cwi2k
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
7 Comments
 
LVL 37

Expert Comment

by:gregoryyoung
ID: 11747118
I'm curious why you want to do this yourself when there are many great forms of file transfer around already HTTP/FTP as an example

0
 

Author Comment

by:cwi2k
ID: 11748350
hi the reason is that i have an application that detects when it needs an update (this bit works) and then runs a seperate update program which then copies the file needed from a remote pc via the internet which makes it automatic, and easy to distribute over many pcs quickly

thanks for the reply
0
 
LVL 37

Accepted Solution

by:
gregoryyoung earned 125 total points
ID: 11748438
I would take a look at this

http://msdn.microsoft.com/library/en-us/dnbda/html/updater.asp

http://weblogs.asp.net/duncanma/articles/10221.aspx

MS has packaged this functionality into an application block (pretty much just include the .dll and you are ready to go)

I'm not saying that this is superior to your method but it is completed and very well tested.
0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 4

Assisted Solution

by:y1381
y1381 earned 125 total points
ID: 11775926
Though I would highly recommend the above option but if you constraints persist you to use FTP .. you can use this class to program FTP transfer in VB

http://www.freevbcode.com/ShowCode.asp?ID=4655

hth

--yatharth
0
 
LVL 37

Expert Comment

by:gregoryyoung
ID: 11776823
you can use ftp transfers with the updater block ... you just have to build in the downloader part ...
0
 

Author Comment

by:cwi2k
ID: 12113618
hi

i used ftp to download the files

cheers
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article explains how to create and use a custom WaterMark textbox class.  The custom WaterMark textbox class allows you to set the WaterMark Background Color and WaterMark text at design time.   IMAGE OF WATERMARKS STEPS Create VB …
Article by: jpaulino
XML Literals are a great way to handle XML files and the community doesn’t use it as much as it should.  An XML Literal is like a String (http://msdn.microsoft.com/en-us/library/system.string.aspx) Literal, only instead of starting and ending with w…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

734 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question