Fwd: RE: [Zope] Zope, MySQL and pictures in blob-fields ...

el-nino@gmx.li el-nino@gmx.li
Fri, 27 Sep 2002 08:40:53 +0200 (MEST)


> I think you want to use the data attribute of the filename.  For
> example, if
> the input field is named "filename", you should use the contents of
> filename.data as input to your blob column in the database.

Thanks, this sounds good :-)
But to be true, I don't have any idea how to do this ...
 
In my document, I have the following lines:
<form action="insertVorschlagAction"
method="post"enctype="multipart/form-data">
<input type="file" name="VorschlagBild">
[...]

 
My "insertVorschlagAction" looks like this:
<dtml-var standard_html_header>
<dtml-call insertVorschlag>
<dtml-var standard_html_footer>

 
"insertVorschlag" looks like this:
insert into Vorschlag values(
	'', 
	<dtml-sqlvar VorschlagBez type="string">, 
	<dtml-sqlvar ProjektNr type="string">,
	<dtml-sqlvar VorschlagBild type="string">
)


In the "insertVorschlag"-method, I can not access VorschlagBild.data ...
it's unknown.
Can somebody tell me where I can use this variable and how I can put it into
the database.

I'm sorry that I keep asking this question, but I cannot find a point to
start from ... :-(

Hope somebody will help me and point to the correct direction :-)

Thanks in advance!

Thilo

-- 
Werden Sie mit uns zum "OnlineStar 2002"! Jetzt GMX wählen -
und tolle Preise absahnen! http://www.onlinestar.de