@Override
public StreamingOutput open(FsFile file, Long from, Long to) {
// TODO: This can be made much more efficient
CloudObject object = new CloudObject(file.getData());
final InputStream is;
try {
BlobStore blobStore = getBlobStore(file.getProject());
is = object.getInputStream(blobStore, from, to);
} catch (IOException e) {
throw new IllegalStateException("Error opening file", e);
}
StreamingOutput stream = new StreamingOutput() {