Hi friend Can anyone help me out with codes for uploading an image file in the server from my Applet page?
I need help in developing an applet which while execution will ask the user to upload his/her image... PLiz send me some codes for developing such an applet application.. Thank you friends
How to proceed then depends on what kind of server you have. If it's FTP, then you do the upload via Commons Net. If it's HTTP (i.e., a servlet will receive the file), then you need Commons HttpClient in the applet, and Commons FileUpload in the servlet.
I tried <PARAM NAME = "postURL" VALUE ="http://localhost:8080/jupload/pages/parseRequest.jsp?URLParam=http://localhost:8080/jupload/uploaded">
but this doesn't work.
does someone know how to apply the syntax 'URLParam=URL+Parameter+Value'?
thank you a lot.
pj [ April 15, 2007: Message edited by: patric ]
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35443
9
posted
0
Hello "patric"-
Welcome to JavaRanch.
On your way in you may have missed that we have a policy on screen names here at JavaRanch. Basically, it must consist of a first name, a space, and a last name, and not be obviously fictitious. Since yours does not conform with it, please take a moment to change it, which you can do right here.
As to your question, the javadocs for UploadPolicy state that " It contains the target URL toward which the files should be upload." So in your case I'm guessing that it might be something like "http://localhost:8080/jupload/pages/parseRequest.jsp", or wherever the server component is installed.
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.