I don't know how it works with Python yet, but here's an example in PHP.

<?php
header('Content-Type: image/png');
echo base64_decode($base64_encoded_str);
?>

I think it would work the same with Python. Just decode the string and print
it to the browser.

2009/6/9 Zhang Huangbin <[email protected]>

>
>
>
> On Jun 9, 3:53 pm, Frank Smit <[email protected]> wrote:
> > If you're going to display it with "Content-Type: image/jpeg" you'll have
> to
> > decode the base64 encoded string first.
>
> It displays a blank page while i use web.header('Content-Type', 'image/
> jpeg').
>
> Any example?
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to