try
{
InputStream vStream = propertyInfo.getValues().get(k).getInputStream();
// TransientValueData binaryValue = new TransientValueData(vStream);
TransientValueData binaryValue =
new TransientValueData(k, null, vStream, null, valueFactory.getFileCleaner(),
valueFactory.getMaxBufferSize(), null, true);
// Call to spool file into tmp
binaryValue.getAsStream().close();
vStream.close();
propertyInfo.getValues().get(k).remove();
values.add(binaryValue);
}
catch (IOException e)