E
El Durango
I have written a simple servlet which will read the servlet inputstream and
create a file. The java client will open a file and write it to the servlet
using URLConnection. Now it works but I have to set a file name through the
servlet as hardcoded. If I pass the filename through client to servlet it
will not work b/c it will also think the file content is part of the
filename. If I have the servlet retrieve the filename as a parameter it
will get the name but will not read the stream to create the file??
Can anyone help me on this?
I am confused on what is a good way of uploading a file with the name, I
think I am almost there but the above issues have been plaguing me.
I researched through Google and could not find the necessary info.
thank you in advance.
create a file. The java client will open a file and write it to the servlet
using URLConnection. Now it works but I have to set a file name through the
servlet as hardcoded. If I pass the filename through client to servlet it
will not work b/c it will also think the file content is part of the
filename. If I have the servlet retrieve the filename as a parameter it
will get the name but will not read the stream to create the file??
Can anyone help me on this?
I am confused on what is a good way of uploading a file with the name, I
think I am almost there but the above issues have been plaguing me.
I researched through Google and could not find the necessary info.
thank you in advance.