protected long writeByteArrayValue ( File file , ValueData value ) throws IOException { OutputStream out = new FileOutputStream ( file ) ; try { byte [ ] data = value . getAsByteArray ( ) ; out . write ( data ) ; return data . length ; } finally { out . close ( ) ; } }
Write value array of bytes to a file .