Hi,
If I have other objects other than String, which is holding a jpg or png
file, I like to return it as Response body, how can I do?
I tried a piece of code like this:
mimetype = image/png
body = fs.open(access_path, 'rb')
return Response(body, content_type=mimetype)
Here body
On Sun, 2012-12-30 at 18:13 -0800, Shu Lin wrote:
Hi,
If I have other objects other than String, which is holding a jpg or
png file, I like to return it as Response body, how can I do?
I tried a piece of code like this:
mimetype = image/png
body = fs.open(access_path,