Why add a static function? It seems like this would be better suited as an instance method. Something like:

```php
$f = new File($path);
$base64 = $f->readBase64();
```

This would allow us to leverage the existing code in File::read() and simply add in chunking and base64 encoding.