use of org.apache.jackrabbit.oak.segment.file.FileBlob in project jackrabbit-oak by apache.
the class ExternalBlobIT method getFileBlob.
private FileBlob getFileBlob() throws IOException {
if (fileBlob == null) {
File file = folder.newFile();
byte[] data = new byte[2345];
new Random().nextBytes(data);
FileUtils.writeByteArrayToFile(file, data);
fileBlob = new FileBlob(file.getPath());
}
return fileBlob;
}