Thanks. But some problems remain. I have known using Image.tostring/fromstring and numarray.tostring/fromstring can do the job. But when confronting multi-spectral images, e.g., RGB color images, I don't know how to do it. Could you give some advices on that?
You wrote "In [14]: img = Image.frombuffer('RGBA', (256,256), a) ", but it seems that "a" cannot work in "frombuffer". -- http://mail.python.org/mailman/listinfo/python-list