All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages

Reads an image from the metadata if any are available

aTypeconst type for the image to retrieve (see METADATA_IMAGE_TYPE*)
aMimeTypeOutput parameter for mimetype of the image
aDataLenOutput parameter for length of image data
aDataOutput parameter for binary data of image

var handler = metadataManager.getHandlerForMediaURL(localPathURI.spec); var mimeTypeOutparam = {}; var outSize = {}; var imageData = handler.getImageData(Ci.sbIMetadataHandler .METADATA_IMAGE_TYPE_FRONTCOVER, mimeTypeOutparam, outSize);