users@grizzly.java.net

Re: Grizzly fileupload

From: gagansnt <gagansnt_at_gmail.com>
Date: Wed, 16 Mar 2011 05:34:34 -0700 (PDT)

We need to change bytes to String so that we could get the first 4 lines.
Though this can be done using byte array manipulation by looking for new
line character. I have attached my code. It is still half baked and have lot
of adhoc things..like checking for new line...I am working on windows so I m
checking for "\r\n" character. In order to make it more generic we may need
to check for "\n" as well.

There is one more issue I m facing with this current code, sometimes the
call to in.ready() in GrizzlyServer class gives false at the start of the
file upload and because of which my code to remove the header gives error.

Also one more thing, Is NIOInputStream has a limit to the number of input
connection. Is there some default setting and if yes then how can I change
it.

I will be happy to contribute in any possible way.

Thanks,
Gagan

http://grizzly.1045725.n5.nabble.com/file/n3779619/GrizzlyWebserver.rar
GrizzlyWebserver.rar

--
View this message in context: http://grizzly.1045725.n5.nabble.com/Grizzly-fileupload-tp3732246p3779619.html
Sent from the Grizzly - Users mailing list archive at Nabble.com.