File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Sending file via http protocol Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Java in General
Bookmark "Sending file via http protocol" Watch "Sending file via http protocol" New topic
Author

Sending file via http protocol

ricky gonzalez
Ranch Hand

Joined: Jun 30, 2000
Posts: 167
Hi, I was wondering how do I send a file through a browser dialog box? After the user selected the file to be submited from an applet, how do I receive the file from the server side?
Thanks.
Carl Trusiak
Sheriff

Joined: Jun 13, 2000
Posts: 3340
I haven't tried it but have read that you can use a servlet with the following basic code.

request is the HttpServletRequest object in your dopost(), doget() or service() method of your servlet.
Give it a try and let me know how it works out.
Good Luck

I Hope This Helps
Carl Trusiak, SCJP2, SCWCD
ricky gonzalez
Ranch Hand

Joined: Jun 30, 2000
Posts: 167
Thank you Carl!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Sending file via http protocol
 
Similar Threads
Command for running a java file
Uploading from a web page
How to Create a Byte Arrary from a XML File?
parsing
calling java class file from javascript