get big datas from client
Hi,
I have a client (javascript) that sends to my servlet big datas via parameter "document=....."
(document can be pdf, html ecc)
I use this line in my servlet:
String document = request.getParameter("document");
but "document" returns null.
How can I get correctly datas from client?
Thanks,
Julio
# 2
I am not sure how you are sending big *documents* in a request URL. You can send only string parameters as part of url and you can get the same using request.getParameter(name).
Can you put the javascript code that used to invoke servlet?
# 4
Balu, that would not give any NPE. The problem he is facing is NPE when he tries to getParameter from request string.
There is a limit of characters you can pass in a query string but that does not mean that it will give NPE.
It is better not suggest than wrong suggestion.