• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

query regarding present code

 
Jignesh Gohel
Ranch Hand
Posts: 276
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello
here i have a code for file transfer that is written in html.
But i want the same to be in the swing format. this code is for file transfer

HTML:
<form ENCTYPE="multipart/form-data" action="/servlet/FileUpLoad" method="POST">
<input name='upfile' type='file'>
<input type="submit" name="Upload" value="Transfer the file">
</form>

please find out the replica for ENCTYPE in JAVA
Thanks
Jack Kharvi
 
Mark Spritzler
ranger
Sheriff
Posts: 17276
6
IntelliJ IDE Mac Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So which is your real name, Jignesh Gohel or Jack Jharvi?

But I am confused as to what exactly you are asking. Are you trying to create a Swing GUI? If it is directly about Swing, we have a great Swing forum that I can move this thread to.

Thanks

Mark
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you mean that you are trying to send a file to a servlet app from a swing client, check out http://jakarta.apache.org/commons/httpclient

It contains the needed functionality for sending multipart streams.
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic