geopackage-sdk/src/main/java/mil/nga/geopackage/extension/coverage/CoverageDataPngImage.java
public byte[] getImageBytes() {
        byte[] bytes = null;
        if (imageBytes != null) {
            bytes = imageBytes;
        } else if (outputStream != null) {
            bytes = outputStream.toByteArray();
        }
        return bytes;
    }
public byte[] getImageBytes() {
        byte[] bytes = null;
        if (imageBytes != null) {
            bytes = imageBytes;
        } else if (outputStream != null) {
            bytes = outputStream.toByteArray();
        }
        return bytes;
    }
Get the image bytes

@return image bytes