Hi, some of my PDFs are on the verge of being too big to open without exceeding the response buffer limit.
If I was using a file stream object I would do something like this:
Do While Not FStream.EoS
Response.BinaryWrite FStream.Read(10240)
Response.Flush
Loop
Is it possible to do something similar instead of MyDocument.Draw, or can you somehow convert this to a filestream object?
Thank you
Jim.
Buffer Limit
Re: Buffer Limit
Support · Jan 22, 2010Hello Jim,
What is the size of the PDF document you are generating? The response buffer for ASP on IIS6 by default allows a maximum of 4MB (configurable). Try increasing the limit to more than 4MB and it will solve the problem.
This value can be changed in the metabase.xml file located in systemroot\System32\Inetsrv folder. The attribute name is ASPBufferingLimit. Before one edits this file, one should 'Enable Direct Metabase Edits' by right clicking the server in IIS Manager. This will allows updates without stopping IIS.
You can save the document to the disk using the file path, you can open the PDF on the browser using the DrawToWeb method and you can save it to a byte array using the Draw method. You can refer to the Document Output
topic on our help documentation.
Thanks,
ceTe Software Support Team.