<div>Thanks to all, especially Gabriel. The base64 is a good idea, but you state a definite problem. I will look at your code at home (offline)...thank you very much! It looks like the kicker is this line here:</div>
<div> </div>
<div><img src='getpic.py?id=%d' alt='%s'>" % (picid, cgi.escape(title))</div>
<div> </div>
<div>Now, why didnīt you share that before????? I can see how calling a separate script like that would work! Again, you should have shared that before. How was I to think of that clever trick from the bare information you gave me earlier??</div>

<div> </div>
<div>Steve, thank you for all your help, but do overcome your temper :))</div>
<div>Victor<br><br></div>
<div class="gmail_quote">On Sun, Apr 13, 2008 at 7:05 AM, Steve Holden <<a href="mailto:steve@holdenweb.com">steve@holdenweb.com</a>> wrote:<br>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Jason Scheirer wrote:<br>[...]<br>
<div class="Ih2E3d">><br>> There _is_ a way to embed image data in HTML that is supported by<br>> every major browser. It is ugly. Using the RFC 2397 (http://<br>> <a href="http://www.ietf.org/rfc/rfc2397" target="_blank">www.ietf.org/rfc/rfc2397</a>) spec for data URLs you could go<br>
><br>> '<img src="data:image/jpg;base64,%s">' % base64.b64encode(image_data)<br>><br>> Obviously you need to import the base64 module somewhere in your code<br>> and base64-encoded data is about a third larger than it would be<br>
> otherwise, so embedding anything particularly large is going to be a<br>> huge pain and affect page load times pretty badly.<br><br></div>This is hardly likely to help someone who hasn't yet grasped the concept<br>
of referencing graphics and prefers to write database output to disk to<br>serve it statically. But who knows, maybe it will ...<br>
<div class="Ih2E3d"><br>regards<br> Steve<br>--<br>Steve Holden        +1 571 484 6266   +1 800 494 3119<br>Holden Web LLC              <a href="http://www.holdenweb.com/" target="_blank">http://www.holdenweb.com/</a><br>
<br></div>
<div>
<div></div>
<div class="Wj3C7c">--<br><a href="http://mail.python.org/mailman/listinfo/python-list" target="_blank">http://mail.python.org/mailman/listinfo/python-list</a><br></div></div></blockquote></div><br>