• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Upload files through HTTP call through client

 
Vishal Kumar
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Guys -

My mgr is asking me to upload multiple files to a server by way of making HTTP Calls. The Input parameters would then be byte stream, file.

1. Does this make sense ?
2. Any leads on how I could accomplish this?

Thank you.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64958
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Not an advanced Java question. Moved to Servlets.
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64958
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"Vishal", you have been asked on numerous occasions to change your display name to conform to JavaRanch requirements.

This is your last warning. Failure to change your name as requested prior to your next post will result in the disabling of your account.

Your display name must be a first name and a last name separated by a space character.

bear
JavaRanch Sheriff
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64958
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The JSP FAQ contains an entry that discusses getting started with file uploads.
 
Rahul Bhattacharjee
Ranch Hand
Posts: 2308
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use multipart post.There is also an useful api for the manupulation of the uploaded files. commons-fileupload.jar
And in the client side you can use input with type=file
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic