25 Mar
2003
25 Mar
'03
7:37 p.m.
Sebastian Queißer wrote at 2003-3-24 18:54 +0100:
Is there a function in python like ImageFile() for a normal file, like a pdf?
You can use "ImageFile" here, too. The only difference (between "Image" and "File") is the "__str__" method: for an image, it results in an "img" tag, for a file it's the files content. You loose the option to access the content with "str(...)" for "ImageFile", but you probably do not need it.... Dieter