Java download-upload large file from-to PHP server
$30-250 USD
กำลังดำเนินการ
โพสต์ มากกว่า 11 ปีที่ผ่านมา
$30-250 USD
ชำระเงินเมื่อส่งงาน
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 )