Construct from a stream.
Parameters: doc - The document to create the image as part of. Parameters: is - The stream that contains the jpeg data. throws: IOException - If there is an error reading the jpeg data.
Construct from a buffered image.
Parameters: doc - The document to create the image as part of. Parameters: bi - The image to convert to a jpeg throws: IOException - If there is an error processing the jpeg data.