Title: RE: [iText-questions] Embedded fonts when using PdfStamper...
I see that there are plenty of methods for retrieving an image, including ones that allow for a URL, a File, and a byte[] array.  My issue is that I'm pulling images from a database which returns to me a clob from which I can retrieve a stream.  I'm currently reading the clob's stream into an array, and then passing that array into the getInstance method of Image.  I'd rather just pass the InputStream directly to getInstance, which I would assume could be a little more efficient (though it may be doing the exact same thing internally).  Do you have any suggestions or should I just leave it as is?  I see that Image.getInstance(URL) retrieves the stream from the URL and passes that to the appropriate method for processing.  Could we just pass a stream through, or does it need to be able to seek back to the beginning of the Stream and thus we open it twice?
 
Any help would be appreciated.
 
Thanks,
 
Bill

Reply via email to