--- bill lam <[EMAIL PROTECTED]> wrote:

> Joey K Tuttle wrote:
> > I'm not sure about what standards say, but in creating a file
> > uploading facility in Linux/Apache, I had troubles with large
> > objects via a CGI post call. As I recall, the troubles began
> > at only a few hundred KB - but this may have been exacerbated by
> 
> My question may be related to what should be the expected behaviour of 
> reading 
> stdin when it is empty.
> 
> in j ide, calling a=.1!:1[3 will retrun an empty string immediately, but in 
> jconsole, it wait for input if stdin is empty.
> 
> in c or perl, isn't that reading an empty stdin will suspense execution until 
> there is data in stdin for reading?
> 
> in cgi, will only one reading on stdin getting all data, or it needs multiple 
> reading of stdin until all data be read as indicated by env variable 
> content_length?

I beleave it would be nice to have buffered (streamed)
reading facility for stdin. In C this is done with fread,
in COM typically I(Sequential)Stream. It could be modeled as

  1!:1 ] 7[,size]    NB. 7=stdin buffered

Return values could be data or _1=oef or _2=error.

One issue is blocking-ness.
http://www.ghostscript.com/pipermail/gs-devel/2001-May/000470.html

This could be done as a complement for binary stdout writer,
as discussed earlier.

> I googled and found there is a built-in facility in cgi.pm to handling 
> uploading 
> file but it seems not applicable directly to J at least not without digging 
> into 
> its source code.

Shouldn't uploading be just a matter of parsing
stdin with mime sections?



 
____________________________________________________________________________________
Don't pick lemons.
See all the new 2007 cars at Yahoo! Autos.
http://autos.yahoo.com/new_cars.html 


 
____________________________________________________________________________________
Now that's room service!  Choose from over 150,000 hotels
in 45,000 destinations on Yahoo! Travel to find your fit.
http://farechase.yahoo.com/promo-generic-14795097
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to