473,396 Members | 2,033 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Huge xml files

Hi Group,

I have an xml file wich contains a rootelement and a subelement with a
filename and a subelement with bindata.
In each xml file there is only one entry for each element. Like this:

<root>
<filename>somefile.exe</filename>
<bindata>bindata in base64 here</bindata>
</root>

I have to parse the content in the bindata element to a Websphere MQ
queue, so I read the xml file into memory with xmlserializer and
filestream and put it in the queue. This works pretty fine.

On the other side of the queue I get the queuedata and collects the
data as an object. This works very well also.

But now and then there are xml files with huge amount of bindata. When
they exceed about 350mb I get an out of memory error. So I don't know
how to handle this. My idea is to somehow break the bindata into
smaller peaces. But I do not know how to partially load the data of
one element (bindata). Is that possible and how?
With this problem solved - is there some way to tell the message queue
that this is only a portion of an element?

- rick -
Jan 28 '08 #1
1 2042
Hi,
I think this is more a question for a Websphere MQ group, it depend of how
they can manage huge amount of data.
You can always read part of the file (maybe you will have to treat it as a
text file instead of a XML).

--
Ignacio Machin
http://www.laceupsolutions.com
Mobile & warehouse Solutions.
"rickbear" <ri********@gmail.comwrote in message
news:53**********************************@s12g2000 prg.googlegroups.com...
Hi Group,

I have an xml file wich contains a rootelement and a subelement with a
filename and a subelement with bindata.
In each xml file there is only one entry for each element. Like this:

<root>
<filename>somefile.exe</filename>
<bindata>bindata in base64 here</bindata>
</root>

I have to parse the content in the bindata element to a Websphere MQ
queue, so I read the xml file into memory with xmlserializer and
filestream and put it in the queue. This works pretty fine.

On the other side of the queue I get the queuedata and collects the
data as an object. This works very well also.

But now and then there are xml files with huge amount of bindata. When
they exceed about 350mb I get an out of memory error. So I don't know
how to handle this. My idea is to somehow break the bindata into
smaller peaces. But I do not know how to partially load the data of
one element (bindata). Is that possible and how?
With this problem solved - is there some way to tell the message queue
that this is only a portion of an element?

- rick -

Jan 28 '08 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: Anders Søndergaard | last post by:
Hi, I'm trying to process a large filesystem (+20 million files) and keep the directories along with summarized information about the files (sizes, modification times, newest file and the like)...
0
by: hakhan | last post by:
Hello, I need to store huge(+/- 100MB) data. Furthermore, my GUI application must select data portions from these huge data files in order to do some post-processing. I wonder in which format I...
5
by: Laiverd.COM | last post by:
Currently working on a site that requires multiple different styles for all kind of things (tables, link colors etc.) and am suddenly ;-) wondering what would be the wise approach: have all these...
10
by: Mario Rodriguez | last post by:
HI people, there is an alternative way to upload files than the ASP.NET native way? Is OK for small files but It doesn't seems to be convenient for an application where there is a lot of paralell...
7
by: Joe | last post by:
I have an upload file operation in the web application. UploadForm.asp is the form, and UploadAction.asp is the form processing. //UploadForm.asp <FORM NAME="InputForm"...
2
by: Zam | last post by:
Hello World, Under Windows 2003 Server. IIS6. The following code working fine for small files, and for files with size about few megabytes. If I am trying to send HUGE file -- about 700...
12
by: Jeff Calico | last post by:
I have 2 XML data files that I want to extract data from simultaneously and transform with XSLT to generate a report. The first file is huge and when XSLT builds the DOM tree in memory, it runs...
2
by: MichiMichi | last post by:
My asp.net application has a directory which is filled up with over 17 files (email) a second. After a while this sums up into a huge amount of files. I usually count files with the GETFILES...
0
by: ranganadh | last post by:
Dear Group members, I am new to LINQ, pls help on the deeling with huge amount of data with the C# stand Alone application. I have two file, which contains more then 2 lacs lines in every...
9
by: NvrBst | last post by:
Whats the best way to count the lines? I'm using the following code at the moment: public long GetNumberOfLines(string fileName) { int buffSize = 65536; int streamSize = 65536; long...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.