Results 1 to 5 of 5
  1. #1
    Ecneret is offline Member
    Join Date
    May 2015
    Posts
    2
    Rep Power
    0

    Question File Transfer App

    Hi,

    I'm currently new to java and I would just like to ask if Socket is sufficient for this file transfer app I'm planning to work on.

    The specs are as follows:

    ~ Move/Copy Files of selected folder/s to a single folder(consolidating them) within the same machine and Network
    ~ File type will be specified on GUI and those specified will be the ones transferred
    ~ option to choose Move or Copy of files
    ~ ability to create/select folder of transfer destination

    Here is an draft of what the GUI will look like.
    File Transfer App-20150514_161235.jpg

  2. #2
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    Eastern Florida
    Posts
    20,003
    Rep Power
    33

    Default Re: File Transfer App

    Yes, you should be able to write a file transfer program using the Socket class. That will require you to fully implement the protocol. There are probably third party FTP classes that will make it much easier.
    If you don't understand my response, don't ignore it, ask a question.

  3. #3
    Ecneret is offline Member
    Join Date
    May 2015
    Posts
    2
    Rep Power
    0

    Default Re: File Transfer App

    Hi Norm,

    Thanks for this! I'll try it out then :)

  4. #4
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    5,114
    Rep Power
    12

    Default Re: File Transfer App

    I can just make hard recommendations: use Apache commons-net for FTP/FTPS and JSCH for SFTP.

    JSCH is really poorly documented, but the source download has a whole set of unit tests which demonstrate exactly how to do all the different features the library has to offer.
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  5. #5
    jim829 is offline Senior Member
    Join Date
    Jan 2013
    Location
    Northern Virginia, United States
    Posts
    6,226
    Rep Power
    14

    Default Re: File Transfer App

    Your first requirement states:

    "Move/Copy Files of selected folder/s to a single folder(consolidating them) within the same machine and Network"

    Moving files within the same machine is easy. JFileChooser can be used for that. If you want to implement your own protocol to transfer files between hosts then you will need a server on each host with which you want to interact. Is that your goal?

    Regards,
    Jim
    The JavaTM Tutorials | SSCCE | Java Naming Conventions
    Poor planning on your part does not constitute an emergency on my part

Similar Threads

  1. file transfer
    By dragokamal in forum Networking
    Replies: 5
    Last Post: 03-20-2012, 01:03 PM
  2. file transfer
    By prashant in forum Networking
    Replies: 3
    Last Post: 12-10-2009, 06:46 AM
  3. Regarding File Transfer in TCP/IP
    By manabendra in forum Networking
    Replies: 2
    Last Post: 08-07-2009, 07:51 AM
  4. tcp file transfer
    By ddj in forum Networking
    Replies: 2
    Last Post: 03-20-2009, 02:10 PM
  5. Java File Transfer
    By lks0912 in forum Advanced Java
    Replies: 0
    Last Post: 10-23-2008, 12:53 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •