public static Representation create(final byte[] bytes) {
        final Representation representation = new Representation(new ByteArrayInputStream(bytes));
        representation.metadata.set(NFO.FILE_SIZE, (long) bytes.length);
        return representation;
    }
public static Representation create ( final byte [ ] bytes ) { final Representation representation = new Representation ( new ByteArrayInputStream ( bytes ) ) ; representation . metadata . set ( NFO . FILE_SIZE , ( long ) bytes . length ) ; return representation ; }
Creates a representation based on the byte array specified. The length of the byte array
will be reflected in the returned representation metadata (property {@link NFO#FILE_SIZE}).
Note that the byte array should not be changed after calling this method, as modification
could be (partially) reflected in the returned representation.

@param bytes
the byte array containing the binary data of the representation
@return the created representation