Discussions

EJB design: Need API for sending data upto 1GB

  1. Need API for sending data upto 1GB (1 messages)

    Hello All,
     I am developing a software in which i ve to transfer data (upto 1 GB) from client to server without using third party tool like(CutFTP etc..).
    Any one has the idea or any helping code through i can transfer such big amount of data .Please suggest me.
    Immediate response will be appreciated.
    thanx
    sunil Tripathi
  2. Hello All, I am developing a software in which i ve to transfer data (upto 1 GB) from client to server without using third party tool like(CutFTP etc..). Any one has the idea or any helping code through i can transfer such big amount of data .Please suggest me.Immediate response will be appreciated.thanxsunil Tripathi
    Not clear why you wouldn't want to use any 3rd party s/w.

    Compressing the data before transfer might be worthwhile - you will have to choose the right compression algorithm depending on the type of data (text/music/video/picture/binary ?), the speed of compression you need etc. this would be a good place to look - http://www.faqs.org/faqs/compression-faq/part1/preamble.html

    Its not clear what are your clients and server, what protocol they speak, what are the operational environment etc. Are they over a LAN or WAN or the internet ? Can there be concurrent uploads ? Do you have to finish within a certain time ?

    I think the right answer(s) will depend on the answers to the above questions.

    FTP is something you should definitely consider (assuming you have a ftp server). There are commercial and non commercial ftp libraries available. Even sun jdk ships with one. Some are discussed here - http://www.javaworld.com/javaworld/jw-04-2003/jw-0404-ftp.html

    Kingshuk