Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Upload File Contents As Servlet Parameter

Status
Not open for further replies.

SDyke

MIS
Oct 13, 2005
55
US
I need to upload files from client to our network file system. The web app runs as a user that has authority to the network system. Is there a way to read the bytes of a client file into a parameter and then send that to the servlet so it can be processed(FileOutputStream)?
 
I realize that Java will be used after the data gets to the servlet but wouldn't I use JavaScript at the client to read the data so it could be sent to the servlet?
 
No... no you wouldn't. You might want to consider an introductory paragraph on HTML forms and the input of type 'file'.

[sub]Never be afraid to share your dreams with the world.
There's nothing the world loves more than the taste of really sweet dreams.
[/sub]

Webflo
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top