I was afraid of something like that. :-)
Senior Software Engineer
From: web400-bounces@xxxxxxxxxxxx [mailto:web400-bounces@xxxxxxxxxxxx] On Behalf Of Richard Schoen
Sent: Monday, May 17, 2010 12:04 PM
Subject: Re: [WEB400] SOAP Webservice returning PDF document
Might need to break your document download service call into multiple chunks. Get 1-2megs at a time and re-assemble via the client application.
RJS Software Systems Inc.
Where Information Meets Innovation
Document Management, Workflow, Report Delivery, Forms and Business Intelligence
Web Site: http://www.rjssoftware.com
Tel: (952) 736-5800
Fax: (952) 736-5801
Toll Free: (888) RJSSOFT
date: Mon, 17 May 2010 08:51:03 -0500
from: "Christen, Duane" <Duane.Christen@xxxxxxxxxx>
subject: [WEB400] SOAP Webservice returning PDF document
I have a requirement to return a PDF document on a call to the web service. It works beautifully, to a point, and was a lot of fun to code.
95% of the PDFs will be under 1M in size, but there will be a few that are greater than 16M, I have a test that is 26M. This is the point where the web service fails, and I'm not sure where to go from here, if there is any where to go.
The error message is "CPIAD07 - Host server error occurred with reason code 10 - 10 -- Reallocation of server buffer failed." This occurs in the web service Java code where it allocates the storage for the PDF "byte artifactInputBuf2 = new byte[artifactSize];" where artifactSize is the size of the PDF file on the server.
I'm not sure if this is a *SNGLVL/*TERASPACE issue or the Java program's heap space size, but is there any way for Java to "allocate" a byte array larger than 16M?
This is the Web Enabling the AS400 / iSeries (WEB400) mailing list To post a message email: WEB400@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
or email: WEB400-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives at http://archive.midrange.com/web400
As an Amazon Associate we earn from qualifying purchases.