pradeepitnal
Posts: 5
|
Posted: 04/10/2006, 7:28 AM |
|
how to upload a file from client to server in a lan environment. using jsp.
_________________
thanx |
|
|
matheus
Posts: 386
|
Posted: 04/10/2006, 9:36 AM |
|
Use component File Upload from CodeCharge Studio.
If you aren't using CCS, please go away and find a forum from pure Java in web.
Thanks
_________________
Matheus Trevizan
Dynamix Software Ltda.
Blumenau SC Brasil
www.dynamix.com.br |
|
|
pradeepitnal
Posts: 5
|
Posted: 04/11/2006, 7:02 AM |
|
hi matheus
i shall explain u my problem . i doing a project where i have to upload PDF file from client machine to my server where i am runing my TOMCAT server. wen i say upload from my client machine that PDF file should be stored in a specific directory in my server.how to do that? i am browser to call the UPLOAD program from server. pls help me
_________________
thanx |
|
|
LH13
|
Posted: 04/11/2006, 7:12 AM |
|
Are your project created in CCS?
If yes, pleace read "working with components --> FileUpload" in CCS help.
Standart CCS component have option to define file upload directory.
If no, try to look for answer in other forums.
This is forum for CCS user.
Sorry my english.
|
|
|
matheus
Posts: 386
|
Posted: 04/11/2006, 9:45 AM |
|
Hi pradeepitnal.
LH13 reply everyhing you need know.
_________________
Matheus Trevizan
Dynamix Software Ltda.
Blumenau SC Brasil
www.dynamix.com.br |
|
|
stella
|
Posted: 06/13/2006, 10:08 AM |
|
hey guys i am loking for image upload to a specific directory. and retrieval of the same by browser .
please assist as u can
thank
|
|
|
MWarloc
|
Posted: 06/14/2006, 5:49 AM |
|
Specify file folder as name of directory for upload.
For example "imgs".
1. Create this directory your in project.
Put some file to this directory (Ant dosn't copy directoryes without files).
2. Or you can create diroctory in your server.
3. Or specify any deirectoy which are available by http.
real name of file (with unique indentifier) you can get by this code
((FileUpload)e.getControl()).getFileName().
you can rename file in afterProceddAction and put to DB new name
or you can put ot db this real file name.
To show the image in page create image and specify as source db column which contain image name. You can format name if you need in beforeShow image event. (For example add any prefix like "/imgs/" or somthig else.)
|
|
|