Hi all,

We use the following code to send some files to the browser:

CSpHttp.reset();
CSpStringOutputStream os = CSpider.getOutputStream();
CSpHttp.writeContentType(os, "some type here");
CSpHttp.flush();
//read a file and write it to os

This works ok, but we found that content type is not getting sent to the
browser until the whole file is read and sent as well, even though the
stream is flushed. This is not a problem for small files, but some of our
files are several MB in size and when downloading those files, users
experience substantial delays before "Save As" dialog box appears because it
takes considerable time to load those files in Java. I was wondering if
anybody else had the same problem and found a way to output content type
right away.

Thanks,

Denis.
_________________________________________________________________________

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]

Reply via email to