We write a lot of files via CSpStringOutputStream. Some of them are text and
some of them are binary with sizes up to 7MB. We don't use writeln(String)
method, though. We use write(byte[], int, int), so that might make some
difference.
We did not have any problems with size limitations. The only issue that we
are having is that flush() does not work as expected. So if you want to send
a big file in several chunks and use flush() in the middle of you
transaction, it has no effect. All the data are buffered somewhere before
sending it the browser.
Denis.
> Perhaps you should open a call to ND Support. It's unlikely that anybody
> else has run into something like this. We have a thing where we send RTF,
> don't know how big it is, but hasn't been a problem.
>
> -- Curt Springer, Team ND
>
> At 12:42 PM 9/10/99 -0400, Shiow-Hwa Gau wrote:
> >I am resending this and hoping to get some information/solution from
> >someone.
> >
> >Shiow-Hwa Gau wrote:
> >
> > > We have a page that when users click the submit button, it collects
data
> > > from
> > > database and writes to a Word text document for users to save into
their
> > >
> > > local machine. We use the following code:
> > >
> > > CSpStringOutputStream ostream = CSpider.getOutputStream();
> > > CSpHttp.reset();
> > > CSpHtml.setAutoMode(false);
> > > ostream.writeln("Content-type: application/msword\n");
> > > ostream.writeln("........................");
> > > ostream.writeln(".....................");
> > > ...........
> > > ...........
> > >
> > > //At the end of ostream.writeln(), we do
> > > CSpHttp.flush(ostream);
> > >
> > > My problem is that the CSpStringOutputStream seems can only hold up to
> > > a certain size or amount of paragraphs (in our case, something like
> > > 130KB)
> > > of strings. All the rest of strings got truncated and there was no
> > > warning
> > > or error messages during the CSpStringOutputStream.writeln or
> > > CSPHttp.flush.
> > > Does anyone know how to increase the size of CSpStringOutputStream, or
> > > CSpStringOutputStream has limited usage of writeln(), or we are
missing
> > > something in our code?
> > >
> > > Any help will be greatly appreciated.
> >
> >_________________________________________________________________________
> >
> >For help in using, subscribing, and unsubscribing to the discussion
> >forums, please go to: http://www.netdynamics.com/support/visitdevfor.html
> >
> >For dire need help, email: [EMAIL PROTECTED]
>
> _________________________________________________________________________
>
> For help in using, subscribing, and unsubscribing to the discussion
> forums, please go to: http://www.netdynamics.com/support/visitdevfor.html
>
> For dire need help, email: [EMAIL PROTECTED]
_________________________________________________________________________
For help in using, subscribing, and unsubscribing to the discussion
forums, please go to: http://www.netdynamics.com/support/visitdevfor.html
For dire need help, email: [EMAIL PROTECTED]