On 9/12/06, charles huang <h...@fjii.com> wrote:
> 问大家一个图片显示的问题,在django里面显示一个图片,简单的办法就是把图片写的文件系统中,然后通过url链接显示。这么干的话,耗资源要多次io操作,而且生成的图片还要去维护,很麻烦。有没一中比较好的办法,可以通过设置http头,然后直接把图片的二进制码流送到用户端?
>
>
应该可以。我的教程中不是有一个文件下载的例子嘛(csv),改一下context-type为一个图片应该就行了。
--
I like python!
My Blog: http://www.donews.net/limodou
UliPad Site: http://wiki.woodpecker.org.cn/moin/UliPad
UliPad Maillist: http://groups.google.com/group/ulipad
_______________________________________________
python-chinese
Post: send python-...@lists.python.cn
Subscribe: send subscribe to python-chin...@lists.python.cn
Unsubscribe: send unsubscribe to python-chin...@lists.python.cn
Detail Info: http://python.cn/mailman/listinfo/python-chinese