PHP code example of graefe / binary-response
1. Go to this page and download the library: Download graefe/binary-response library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
graefe / binary-response example snippets
use Graefe\Net\Http\BinaryResponse;
use Graefe\Net\Http\BinaryResponse\InMemorySource;
$source = new InMemorySource('Any binary data, maybe from a BLOB column.');
$response = new BinaryResponse($source);
$reponse->send();