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. C#
  4. Moving huge amounts of Data over Local/Lan

Moving huge amounts of Data over Local/Lan

Scheduled Pinned Locked Moved C#
sysadminquestionxmlhelptutorial
3 Posts 2 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.
  • S Offline
    S Offline
    Sharpoverride
    wrote on last edited by
    #1

    Ok.. here's my problem.. I need to send allot of data from my client to the server and viceversa.. My aproach is to use xml tags in a way that the data set can understand and load.. I worked for a while.. but whenever I get a transmision I need to save the data and load the dataset from the file.. The problem is that the datagrid closes down and I can't do anything more ... My question : 1.Is there a way of sending files ( .xml, .rar, .exe, etc..) over the network using Sockets or TcpClients? 2. What's the best way to manage huge amounts of data ? 3. How to get the dataset not to crash ? If the answer should contain a project it would be much aprecieted ... Lazar Mihai Highschool student

    K 1 Reply Last reply
    0
    • S Sharpoverride

      Ok.. here's my problem.. I need to send allot of data from my client to the server and viceversa.. My aproach is to use xml tags in a way that the data set can understand and load.. I worked for a while.. but whenever I get a transmision I need to save the data and load the dataset from the file.. The problem is that the datagrid closes down and I can't do anything more ... My question : 1.Is there a way of sending files ( .xml, .rar, .exe, etc..) over the network using Sockets or TcpClients? 2. What's the best way to manage huge amounts of data ? 3. How to get the dataset not to crash ? If the answer should contain a project it would be much aprecieted ... Lazar Mihai Highschool student

      K Offline
      K Offline
      keith maddox
      wrote on last edited by
      #2

      Hi Lazar, when you are sending large amounts of data over a network, your best bet is to use the most compact form available, xml would be a good choice for a smaller load, but if there is truely a lot of data, then you might consider sending it in binary form and yes, you can and probably should use .NET sockets. These are pretty easy to use with a little practice but might give you a little frustration at first. Don't give up on them though because they are the very best way to move large pieces of data across the network. For #2, I would probably spool the data into and out of an xml DataTable so the grid can see them directly. Look at the DataTable object in .NET! Create one and play around with the Grid connected to it, it's pretty easy once you get the hang of it. As far as #3 is concerned, not enough detail for me to say, sorry, but I will say it is most likely not a bug in the grid as I've used it extensively for some time without problems unless I was doing something wrong. Good luck on your project.

      S 1 Reply Last reply
      0
      • K keith maddox

        Hi Lazar, when you are sending large amounts of data over a network, your best bet is to use the most compact form available, xml would be a good choice for a smaller load, but if there is truely a lot of data, then you might consider sending it in binary form and yes, you can and probably should use .NET sockets. These are pretty easy to use with a little practice but might give you a little frustration at first. Don't give up on them though because they are the very best way to move large pieces of data across the network. For #2, I would probably spool the data into and out of an xml DataTable so the grid can see them directly. Look at the DataTable object in .NET! Create one and play around with the Grid connected to it, it's pretty easy once you get the hang of it. As far as #3 is concerned, not enough detail for me to say, sorry, but I will say it is most likely not a bug in the grid as I've used it extensively for some time without problems unless I was doing something wrong. Good luck on your project.

        S Offline
        S Offline
        Sharpoverride
        wrote on last edited by
        #3

        I know how to use the sockets and I know how to use a datagrid and datatables ... I'm going to try the binary sending .. and see what happens.. as for the datagrid the reason it's crashing is that I save the xml data into a file that I read it whith the dataset's ReadXml(..) method and it has to load the entire dataTable at once ... My best quess for the crashing is that .. there can't be any other explanasion more plausable.. Thanks.. if you have any other suggestion fell free to send them ... P.S : I'm using TcpClient and a network class made by me.. which has some events that tell me when I recieve a message or when I'm cur off from the server ! Lazar Mihai Highschool student

        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