decode large base64 from xml in java: OutOfMemory -


i need write base64 encoded element of xml file separate file. problem: file reach size of 100 mb. every solution tried ended "java.lang.outofmemoryerror: java heap space". problem not reading xml in general or decoding process, size of base64 block.

i used jdom, dom4j , xmlstreamreader access xml file. however, want access base64 content of respective element mentioned error. tried xslt using saxon's base64binary-to-octets function, of course same result.

is there way stream base64 encoded part file without getting whole chunk in 1 single piece?

thanks hints,

andreas

try stax api (tutorial). large text elements, should several text events need push streaming base64 implementation (like 1 skaffman mentioned).


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -