code: public static byte[] get(Object from, Field field)
      {
          PropertyAccessor<?> accessor = PropertyAccessorFactory.getPropertyAccessor(field);
          return accessor.toBytes(getObject(from, field));
      }
docs: Gets field value as byte-array.
  
  @param from
  the from
  @param field
  the field
  
  @return the byte[]
  
  @throws PropertyAccessException
  the property access exception