Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. Send and receive file on VB.NET

Send and receive file on VB.NET

Scheduled Pinned Locked Moved .NET (Core and Framework)
csharpsysadminquestion
6 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Anonymous
    wrote on last edited by
    #1

    What class is/are used to send and receive file( any files ) between client program and server program on TCP/IP? Sample will be Good! Thank you!

    C R 2 Replies Last reply
    0
    • A Anonymous

      What class is/are used to send and receive file( any files ) between client program and server program on TCP/IP? Sample will be Good! Thank you!

      C Offline
      C Offline
      Colin Angus Mackay
      wrote on last edited by
      #2

      System.Net.Socket is a good place to start if you want to use TCP/IP.


      "You can have everything in life you want if you will just help enough other people get what they want." --Zig Ziglar "On two occasions, I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able to rightly apprehend the kind of confusion of ideas that could provoke such a question." --Charles Babbage (1791-1871)

      A 1 Reply Last reply
      0
      • C Colin Angus Mackay

        System.Net.Socket is a good place to start if you want to use TCP/IP.


        "You can have everything in life you want if you will just help enough other people get what they want." --Zig Ziglar "On two occasions, I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able to rightly apprehend the kind of confusion of ideas that could provoke such a question." --Charles Babbage (1791-1871)

        A Offline
        A Offline
        Anonymous
        wrote on last edited by
        #3

        Can you give few line example? Thank you!:)

        C 1 Reply Last reply
        0
        • A Anonymous

          Can you give few line example? Thank you!:)

          C Offline
          C Offline
          Colin Angus Mackay
          wrote on last edited by
          #4

          Anonymous wrote: Can you give few line example? It would be better if you got a book on the subject. C# Network Programming by Richard Blum[^] is quite a good book on the subject. (Although all the examples in the book are in C# it is really the .NET Framework that is the important part. So everything mentioned will work for C#, VB.NET, Fujitsu COBOL.NET or whatever). You will probably find that there is a better way from the book. You haven't really mentioned what you are trying to do, other than sending a file via TCP/IP (which is a bit vague and doesn't take into account things like people having firewalls that block your connection. You may decide a better way is using a web service - which would send the file via HTTP and therefor pass through a firewall)


          "You can have everything in life you want if you will just help enough other people get what they want." --Zig Ziglar "On two occasions, I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able to rightly apprehend the kind of confusion of ideas that could provoke such a question." --Charles Babbage (1791-1871)

          A 1 Reply Last reply
          0
          • C Colin Angus Mackay

            Anonymous wrote: Can you give few line example? It would be better if you got a book on the subject. C# Network Programming by Richard Blum[^] is quite a good book on the subject. (Although all the examples in the book are in C# it is really the .NET Framework that is the important part. So everything mentioned will work for C#, VB.NET, Fujitsu COBOL.NET or whatever). You will probably find that there is a better way from the book. You haven't really mentioned what you are trying to do, other than sending a file via TCP/IP (which is a bit vague and doesn't take into account things like people having firewalls that block your connection. You may decide a better way is using a web service - which would send the file via HTTP and therefor pass through a firewall)


            "You can have everything in life you want if you will just help enough other people get what they want." --Zig Ziglar "On two occasions, I have been asked [by members of Parliament], 'Pray, Mr. Babbage, if you put into the machine wrong figures, will the right answers come out?' I am not able to rightly apprehend the kind of confusion of ideas that could provoke such a question." --Charles Babbage (1791-1871)

            A Offline
            A Offline
            Anonymous
            wrote on last edited by
            #5

            OK Thanks!

            1 Reply Last reply
            0
            • A Anonymous

              What class is/are used to send and receive file( any files ) between client program and server program on TCP/IP? Sample will be Good! Thank you!

              R Offline
              R Offline
              Randy S
              wrote on last edited by
              #6

              You can send files to and from a share in your network if you only need to stay within an intranet. I've done this with system.IO. Is this what you're refering to?

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups