Closed

Java download-upload large file from-to PHP server

This project was awarded to justforbusn for $130 USD.

Get free quotes for a project like this
Employer working
Awarded to:
Skills Required
Project Budget
$30 - $250 USD
Total Bids
10
Project Description

I need a java console application (no GUI) that downloads-uploads large files from a PHP script (linux-ubuntu with apache2 and PHP). You need to write the java code and the PHP script, and I need all the source code. The PHP script is like a webservice allowing the download of a large local file. The large file could be of several gigabytes.

The download-upload can be full or incremental, and every function call to the PHP script must complete under max allowed time (usually 30 seconds with apache-php). The Java program decides the block size to download-upload in order for the webservice function call to complete under allowed time. The Java program downloads-uploads file chunks (blocks) in order to synchronize locally (download) the large remote file. If the communication fails for a given block, the java program must restart the failed block in order to complete the complete download-upload. If the java program is stopped and then restarted, it must resume the download-upload. The downloaded-uploaded blocks must be glued together to form a complete file. The functions implemented by the PHP script (called by java) are:
download:
- getFileList()
- getFileSize( fName )
- getFileLastModifTime( fName )
- getFileChecksumMD5( fName, fromByte, toByte ); if toByte=0, then use whole file
- getFileChecksumSHA( fName, fromByte, toByte ); if toByte=0, then use whole file
- getFileBlock( fName, fromByte, toByte )
upload:
- sendNewFile( fName, size, MD5-checksum, SHA-checksum )
- sendNewFileData( fName, fromByte, toByte, data )

Looking to make some money?

  • Set your budget and the timeframe
  • Outline your proposal
  • Get paid for your work

Hire Freelancers who also bid on this project

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online