protected function _readFile($path)
{
$context = stream_context_create(['http' => ['header' => 'Connection: close']]);
$content = file_get_contents($path, 0, $context);
if (!$content) {
trigger_error('No content found for ' . $path);
}
return chunk_split(base64_encode($content));
}