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. Web Development
  3. ASP.NET
  4. How to read a 180mb xml file in asp.net

How to read a 180mb xml file in asp.net

Scheduled Pinned Locked Moved ASP.NET
helpcsharpasp-netdatabasexml
4 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.
  • R Offline
    R Offline
    raghvendrapanda
    wrote on last edited by
    #1

    I have a requirement in which i have to import an xml file of 180mb into the database. i tried to read the file using stringbuilder,session....but nothing worked .every time i tried to read the file ..i got an error of out of memory exception.. Please Help, Raghvendra Panda

    L 2 Replies Last reply
    0
    • R raghvendrapanda

      I have a requirement in which i have to import an xml file of 180mb into the database. i tried to read the file using stringbuilder,session....but nothing worked .every time i tried to read the file ..i got an error of out of memory exception.. Please Help, Raghvendra Panda

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      raghvendrapanda wrote:

      every time i tried to read the file ..i got an error of out of memory exception..

      Shouldn't happen with a XmlReader[^]. Fetch a record, process it, and onto the next.

      I are Troll :suss:

      1 Reply Last reply
      0
      • R raghvendrapanda

        I have a requirement in which i have to import an xml file of 180mb into the database. i tried to read the file using stringbuilder,session....but nothing worked .every time i tried to read the file ..i got an error of out of memory exception.. Please Help, Raghvendra Panda

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        When I read your question I have to think of something I encountered. My problem had to do with a limitation of Datasets. When the data exceeds about 100mb an 'out of memory' exception is thrown. So if you use a Dataset to read/write the data, then the answer is probably to do this without using a dataset.

        R 1 Reply Last reply
        0
        • L Lost User

          When I read your question I have to think of something I encountered. My problem had to do with a limitation of Datasets. When the data exceeds about 100mb an 'out of memory' exception is thrown. So if you use a Dataset to read/write the data, then the answer is probably to do this without using a dataset.

          R Offline
          R Offline
          raghvendrapanda
          wrote on last edited by
          #4

          that's exactly what my problem is ,i am unable to find a control which can hold huge data upto 200 mb.as i want to pass it as an parameter into the database, i have to send the data as a parameter,kindly suggest me what i should do.

          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