Send a suggestion!

We're building a brand new version of the site, and we'd love to hear your ideas

Members

Technology Zones

IBM Learning Center

Articles

Hosted By

MaximumASP

Info

Rated
Read 55,599 times

Downloads

Related Categories

Winsock File Transfer

A basic example on how to transfer files across the network using the WinSock Control

James first started writing tutorials on Visual Basic in 1999 whilst starting this website (then known as VB Web). Since then, the site has grown rapidly, and James has written numerous tutorials, articles and reviews on VB, PHP, ASP and C#. In October 2003, James formed the company Developer Fusion Ltd, which owns this website, and also offers various development services. In his spare time, he's a 3rd year undergraduate studying Computer Science in the UK. He's also a Visual Basic MVP.

Comments

  • Re: trouble with pdf's

    Posted by zurna9 on 16 May 2007

    If you are sending a pdf it must be read from the file as binary data, otherwise i thing you loose some information when strings are being converted - im not 100% sure of the specifics, i was able ...

  • trouble with pdf's

    Posted by vbJiP on 12 Sep 2003

    Hi, I've tried this one with different file types, but pdf's and xls' wont work. Can someone tell me how to fix that ?

    Thanks

    JIP

  • File save

    Posted by willawalla on 30 Apr 2003

    how can i make the recieved file be saved to a specific directory

    dir1.path or somthing like that rather than app.path

    cheers

  • sending multiple files at once

    Posted by jbman on 19 Apr 2003

    This is a really old message that im replying too but oh well. Its for all yo out there that have the same Q.

    To send multiple files simply put a "DoEvents()" statement before doing your "Winsock.S...

  • Nice piece of code... very usefull example...

    Posted by pliebscher on 26 Jul 2002

    But, when I try to loop the send routine to send a list of files, they are all combined as one file when received at the server. I can see why this is happening, I just can't figure out how to make it...