mapnik/mapnik — Issue #1026: stream program 
Author: felix-1128
Created: 2012-01-13 19:21:14+00:00
State: open

Hi all again, I want to send the picture just rendered to the client using http protocal.

Here is what I do right now, I use mapnik.save_to_file() function to save the picture i just rendered to the local disk, then read it into the memory and finally send it to the client.

But I think there must be a better way to do this without writing and reading the disk. I'm wondering whether I could just write the picture to stream???

So how can I do this?

BTW, I use python to do all this. Thanks a lot:)