public static void set(Object target, Field field, String fieldVal)
    {
        PropertyAccessor<?> accessor = PropertyAccessorFactory.getPropertyAccessor(field);
        Object value = accessor.fromString(target.getClass(), fieldVal);
        set(target, field, value);
    }
public static void set ( Object target , Field field , String fieldVal ) { PropertyAccessor < ? > accessor = PropertyAccessorFactory . getPropertyAccessor ( field ) ; Object value = accessor . fromString ( target . getClass ( ) , fieldVal ) ; set ( target , field , value ) ; }
Sets a byte-array onto a field.

@param target
the target
@param field
the field
@param fieldVal
the field value

@throws PropertyAccessException
the property access exception