Steve Loughran wrote:
send it as an attachment. That works for files that size. base64 encoding is
very slow as well as being inefficient; XML parsers dont like strings that
size.
Are we sure it's the XML parser thats at fault here? I'm a little interested in this one, as some of the stuff we do does the base64 thang (for historical reasons - its not our service at the other end). This isn't the first time I've seen people complain about OOME's with Axis, but there's no way you should OOM base64 transforming an 8Mb file - gzipped or not. The previous report, IIRC, was for a 2Mb string, not encoded. While these practices arent ideal, it makes me wonder if there is a bug that needs looking at.

Markus, if you have a simple service which has this problem, and can send me the code, I'll investigate. If you send me the results of running fingerprint.jsp in your axis webapp as well, that would help - it may be the problem only shows up with a particular jdk or parser.

Cheers,
Baz



Reply via email to