• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

uploading file

 
santhoshkumar samala
Ranch Hand
Posts: 156
Eclipse IDE Hibernate Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can any one tell how to upload a file in java
thanks in advance
 
Rajeev Asthana
Ranch Hand
Posts: 43
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by santoshkumar samala:
can any one tell how to upload a file in java
thanks in advance

Do you want to upload to a web server or to a machine connected on your LAN?
 
santhoshkumar samala
Ranch Hand
Posts: 156
Eclipse IDE Hibernate Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rajeev
here the case is To upload file on the webserver
 
Stan James
(instanceof Sidekick)
Ranch Hand
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The file upload widget on the HTML causes your browser to send a multipart request to the server. Mutlipart requests are non-trivial to read. If you're in a servlet environment, google on "OReilly multipart reader" and find their famous example. I just used this as a guideline to implement a multipart reader in a scratch-built web server. A fun exercise if you have the time.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic