Re: Out of Memory Exception while loading Images.

2007-09-03 Thread J.Pietschmann
Jay wrote: I am just thinking, is it possible to flush the output out, if FOP byte stream exceeds the limit? This would help us to deal with large objects like images etc. ? Ordinary byte streams are flushable. The problem is more likely caused by using a ByteArrayOutputStream, which is used

Re: Out of Memory Exception while loading Images.

2007-08-29 Thread Jay
Hi All, Can anyone please help me out here ? I am trying to get the FOs and images as suggested by Adrian, but looks like its any type of image which is causing this error.GIF, .JPG etc. Is there something very obvious I might be missing here ? Appreciate your help. Thanks, Digvijay. On

Re: Out of Memory Exception while loading Images.

2007-08-29 Thread Philipp Wagner
On Wednesday 29 August 2007 09:49, Jay wrote: Hi All, Can anyone please help me out here ? I am trying to get the FOs and images as suggested by Adrian, but looks like its any type of image which is causing this error.GIF, .JPG etc. Is there something very obvious I might be missing here ?

Re: Out of Memory Exception while loading Images.

2007-08-29 Thread Manuel Mall
On Wednesday 29 August 2007 15:49, Jay wrote: Hi All, Can anyone please help me out here ? I am trying to get the FOs and images as suggested by Adrian, but looks like its any type of image which is causing this error.GIF, .JPG etc. Is there something very obvious I might be missing here ?

Out of Memory Exception while loading Images.

2007-08-28 Thread Jay
Hi All, This is Digvijay. Joined recently to this group. I am using FOP 0.93 in one of my projects which went to production yesterday. As soon as users started downloading PDFs, application started throwing Out of Memory Exception. One obvious reason,we concluded was that, we need to increase

Re: Out of Memory Exception while loading Images.

2007-08-28 Thread Adrian Cumiskey
Hi Jay, What type of images are they? Also please provide the full exception stack trace. If you could host the images somewhere along with the FO which references them so they could be referenced in a test that would be helpful also. Adrian. Jay wrote: Hi All, This is Digvijay.

Re: Out of Memory Exception while loading Images.

2007-08-28 Thread Jay
Hi, The images are JPG. *And here is the stack trace:* java.lang.OutOfMemoryError java.lang.StringBuffer.expandCapacity(StringBuffer.java(Inlined Compiled Code)) java.lang.StringBuffer.append(StringBuffer.java(Compiled Code)) sun.net.www.protocol.file.FileURLConnection.getInputStream(