public final byte[] getIccProfileBytes(final File file, final T params) throws ImagingException, IOException {
        if (!canAcceptExtension(file)) {
            return null;
        }

        if (LOGGER.isLoggable(Level.FINEST)) {
            LOGGER.finest(getName() + ": " + file.getName());
        }

        return getIccProfileBytes(ByteSource.file(file), params);
    }
Gets an array of bytes describing the International Color Consortium (ICC) specification for the color space of the image contained in the input file.
Not all formats support ICC profiles.

@param file   A valid file reference.
@param params Optional instructions for special-handling or interpretation of the input data.
@return If available, a valid array of bytes; otherwise, a null
@throws ImagingException In the event that the specified content does not conform to the format of the specific parser implementation.
@throws IOException      In the event of unsuccessful read or access operation.
src/main/java/org/apache/commons/imaging/AbstractImageParser.java