The following fragment is used to read in system.in data from a file
upload,
but System.in is blocking after the 4046 read byte. On each and every
case.
It does not matter if I change the code, to read in bigger chunks, it
still blocks
around the 4000byte mark.
-------------------------------------------------
int c;
int count=0;
while ( (c=System.in.read()) !=-1)
{
System.out.print((char)c);
count++;
}
-------------------------------------------------
I am running Apache/1.3.19 Server, with Redhat 7.1 on an Intel 166Mhz
pentium
with 128megs ram.
Any help or similar experiences appreciated
Cheers
Jason
--
Jason Pell
Senior Analyst/Programmer - Web Developer
Callista Software Services Pty Ltd
27 Brougham Street, Geelong Victoria 3220 Australia
Phone: 03 5227 8858 International: +61 3 5227 8858
Fax: 03 5227 8907 International: +61 3 5227 8907
E-mail Jason...@callista.com.au
http://www.callista.com.au
Customer Support Hotline: 1800 620 497
"Callista - the brightest solution in university management"
---------------------------------------------------------------
Important Notice: The contents of this email transmission,
including attachments, may be privileged and confidential.
Any unauthorised use of the contents is expressly prohibited.
If you have received this transmission in error, please advise
the sender by return email or telephone immediately and
destroy all versions.
---------------------------------------------------------------
Thanks anyway
Jason
Not that this is the cause of your problem, but just out of curiousity
why are you using CGI instead of servlets ? Is there something I'm
missing about what CGI can do that servlets can't?
I've been doing CGI (in various languages) for 5 years and servlets
for one year, and I can't think of a reason why I would want to do CGI
in Java when servlets exist as an alternative.