aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Read file using file object(URGENT) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Read file using file object(URGENT)" Watch "Read file using file object(URGENT)" New topic
Author

Read file using file object(URGENT)

Angela D'souza
Ranch Hand

Joined: Jan 16, 2002
Posts: 469
Hi,
Like yahoo photos, I want to download file from user disk or network to server using javascript. How can I do that?
Thanks,
Angels
Heath Lilley
Ranch Hand

Joined: Jan 09, 2001
Posts: 72
The only way I know of to upload files from a client is to set up a servlet on the server that reads the request data and saves it to the server's HD.
Here is a link to the java download page of a set of classes we used to upload files from a clients machine. They are from Oreilly.
http://www.servlets.com/cos/index.html
The class You want to look at is the Multipart Request
Yuriy Fuksenko
Ranch Hand

Joined: Feb 02, 2001
Posts: 413
You could have <input type=file ,
but anyway you need to handle file submission on a server side.
 
 
subject: Read file using file object(URGENT)
 
Similar Threads
jboss 3.2.1 problem
How can I upload a File using Struts
delete method in B & S
Ant error: Make sure you have it in you classpath
JSP and Java wait help