This is a PHP script that can be used to manage the download process. The advantages of using PHP script for handling the download process is we can prevent user to download the file directly, we can also limit the download speed to the desired speed, and we can also count how many times that file has been downloaded.
The script below has some features such as :
- Configurable download speed.
- Resumable download capability.
Besides the text data type, web services is also able to handle the binary data type. With the ability to handle binary data, a web service is able to transfer image files to the client applications. What makes web service can transfer binary data is base64 encoding. Base64 can encode binary data into 64 characters (A to Z, a to z, 0 to 9, +, and /) so it can be included in SOAP document. What the client application need to do is just decode it back to binary data.