Hello Paul,
Thank you for a quick reply.
It doesn't look "same way" :(. Normally I've read data from a file on a client's
machine
using Perl's read function like this
while(read($file, $data, 1024))
{
print TO $data;
}
to write it from $file on client's computer to a file associated with file handle TO.
Now I obviously need to store the data in a variable. Just pushing
$data strings into array and then joining (join('',@array) doesn't
work, because it's not ASCII (file gets corrupted). So, what I do not
understand, is how to open a filehandle to a database field and then
"print" to it? :).
Regards,
Tom
Saturday, March 09, 2002, 9:00:08 PM, you wrote:
PD> At 16:39 +0200 3/9/02, [EMAIL PROTECTED] wrote:
>>Hello.
>>
>>How to load binary data into a table using
>>Perl DBI module (the data is uploaded from a HTML
>>form)?
PD> Same way you load any other kind of data. Use placeholders or the quote()
PD> function.
>>
>>I failed to find any information on MySQL site.
>>
>>Thanks in advance.
PD> ---------------------------------------------------------------------
PD> Before posting, please check:
PD> http://www.mysql.com/manual.php (the manual)
PD> http://lists.mysql.com/ (the list archive)
PD> To request this thread, e-mail <[EMAIL PROTECTED]>
PD> To unsubscribe, e-mail <[EMAIL PROTECTED]>
PD> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
--
Best regards,
Toomas mailto:[EMAIL PROTECTED]
---------------------------------------------------------------------
Before posting, please check:
http://www.mysql.com/manual.php (the manual)
http://lists.mysql.com/ (the list archive)
To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php