switch (state.getType()) {
case PropertyType.BINARY:
try {
// special handling required for binary value:
// spool binary value to file in blob store
BLOBFileValue blobVal = (BLOBFileValue) val.internalValue();
long size = blobVal.getLength();
if (size > minBlobSize) {
out.writeInt(-1);
InputStream in = blobVal.getStream();
String blobId = blobStore.createId((PropertyId) state.getId(), i);