this shouldn't be an issue. an image is just a byte array. I would assume you could read the array into a Stream object. then embed the stream into the document.
If the examples require a file you could write the stream to a file, embed the file into the documet, and finally, delete the file as it's not longer needed.
Jason Meckley
Programmer
Specialty Bakers, Inc.