jQuery in Action, 3rd edition
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
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "Read file using file object(URGENT)" Watch "Read file using file object(URGENT)" New topic

Read file using file object(URGENT)

Angela D'souza
Ranch Hand

Joined: Jan 16, 2002
Posts: 469
Like yahoo photos, I want to download file from user disk or network to server using javascript. How can I do that?
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.
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.
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: Read file using file object(URGENT)
It's not a secret anymore!