[Zope-DB] Draw image from MySQL into table

Kozloski, Matthew matthew.kozloski@strus.com
Wed, 13 Nov 2002 15:12:32 -0500


This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.

------_=_NextPart_001_01C28B51.00173D10
Content-Type: text/plain

Hello,

I am rather new to the use of MySQL in zope, and have stumbled my way
through until now.  This works:

<dtml-in "db_pages.MySQL_methods.image_display()"><dtml-var DATA></dtml-in>

It draws a nice picture on the screen.  This does NOT work (and I don't know
why!):

<table>
  <tr>
    <td>
      <dtml-in "db_pages.MySQL_methods.image_display()"><dtml-var
DATA></dtml-in>
    </td>
  </tr>
</table>

It only gives my the ASCII characters that make up the file in the db.  Any
thoughts?

Thanks for your help - Matt

------_=_NextPart_001_01C28B51.00173D10
Content-Type: text/html
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2653.12">
<TITLE>Draw image from MySQL into table</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=3D2>Hello,</FONT>
</P>

<P><FONT SIZE=3D2>I am rather new to the use of MySQL in zope, and have =
stumbled my way through until now.&nbsp; This works:</FONT>
</P>

<P><FONT SIZE=3D2>&lt;dtml-in =
&quot;db_pages.MySQL_methods.image_display()&quot;&gt;&lt;dtml-var =
DATA&gt;&lt;/dtml-in&gt;</FONT>
</P>

<P><FONT SIZE=3D2>It draws a nice picture on the screen.&nbsp; This =
does NOT work (and I don't know why!):</FONT>
</P>

<P><FONT SIZE=3D2>&lt;table&gt;</FONT>
<BR><FONT SIZE=3D2>&nbsp; &lt;tr&gt;</FONT>
<BR><FONT SIZE=3D2>&nbsp;&nbsp;&nbsp; &lt;td&gt;</FONT>
<BR><FONT SIZE=3D2>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &lt;dtml-in =
&quot;db_pages.MySQL_methods.image_display()&quot;&gt;&lt;dtml-var =
DATA&gt;&lt;/dtml-in&gt;</FONT>
<BR><FONT SIZE=3D2>&nbsp;&nbsp;&nbsp; &lt;/td&gt;</FONT>
<BR><FONT SIZE=3D2>&nbsp; &lt;/tr&gt;</FONT>
<BR><FONT SIZE=3D2>&lt;/table&gt;</FONT>
</P>

<P><FONT SIZE=3D2>It only gives my the ASCII characters that make up =
the file in the db.&nbsp; Any thoughts?</FONT>
</P>

<P><FONT SIZE=3D2>Thanks for your help - Matt</FONT>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C28B51.00173D10--