public File getLOBFile(KeyValueVersion keyValueVersion, String fileName) throws FileNotFoundException, IOException
{
InputStreamVersion istreamVersion = kvStore.getLOB(keyValueVersion.getKey(), client.getConsistency(),
client.getTimeout(), client.getTimeUnit());
InputStream is = istreamVersion.getInputStream();
File lobFile = new File(fileName);
OutputStream os = new FileOutputStream(lobFile);
int read = 0;
byte[] bytes = new byte[OracleNOSQLConstants.OUTPUT_BUFFER_SIZE];
while ((read = is.read(bytes)) != -1)
{
os.write(bytes, 0, read);
}
return lobFile;
}