From: 7stud -- Date: 2007-11-25T10:08:10+09:00 Subject: Re: how to read a file and insert it into a mysl blob field 7stud -- wrote: > Jochen Kaechelin wrote: >> How can I read a localy stored file and insert it into a mysal blob >> field? Just to be clear: 1) I am assuming 'mysl' and 'mysal' should be 'mysql'. 2) The field names char_field, int_field, tinyblob_field in the following code: dbh.query(" INSERT INTO table_name (char_field, int_field, tinyblob_field) VALUES ('apple', 3, '#{data}') ") have no significance--those names should be whatever you named your fields in your database, e.g. name, id, data. -- Posted via http://www.ruby-forum.com/.