Hello,
But I can not include a "jpg" image in the RTF
file. For including the "jpg" image file, firstly, I have obtainted the
hexadecimal representation of the image with Image.encode("hex") from PIL
library:
Import Image
img = Image.open("photo.jpg")
file = open("filename","wb")
file.write(img.encode("hex"))
file.close()
However, this hexadecimal representation is no
good, because when, for example, I save the same image with Microsoft Word in
RTF format, these representations no match.
Anybody can help me ?
Thank you very much.