Bookmark Topic Watch Topic
  • New Topic

Java Code for file upload/download using a given protocol  RSS feed

 
Srinivasa Maddi
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi,

I have been asked to write a standalone java program which should upload/download any given file to/from an AppServer using a given protocol(its upto the client i.e it can be http, https, ftp, sftp). I have to write a single java file with these protocol specific methods. Kindly suggest some code.
 
Jesper de Jong
Java Cowboy
Sheriff
Posts: 16060
88
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Report post to moderator
The Apache Commons Net library contains implementations of FTP and SFTP. Apache HttpClient is a good implementation of client-side HTTP.
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Report post to moderator
Any specific reason starting a new thread for essentially the same stuff when you already got one going on here?
 
Srinivasa Maddi
Ranch Hand
Posts: 60
  • Mark post as helpful
  • send pies
  • Report post to moderator
If it was supposed to be posted in the earlier thread then i will do take care these kind of things in my next post. Here i am looking for some help in coding perspective and also this should be a standalone program without any third party jars.
 
Rob Spoor
Sheriff
Posts: 21135
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Report post to moderator
As Maneesh said, this can go in the other thread. Closing this one.
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!