Hi I am trying to update a blob column from Ruby script into MySQL DB.
The script is running on PC and DB on Linux host.
The problem I see is that only 255 bytes of data being stored ,
is there any way to deal with that problem ?
myconnect = Mysql::new(host, user, "", db)
f = File.new(file_name,'rb')
data = Mysql.escape_string(f.sysread(f.size))
update_sql = "update SHARE set COMPANY_LOGO = '"+ data + "' WHERE ID =
8982167534873685924";
Hi I am trying to update a blob column from Ruby script into MySQL DB.
The script is running on PC and DB on Linux host.
The problem I see is that only 255 bytes of data being stored ,
is there any way to deal with that problem ?
Yep I got it. So much trouble with the script so I missed the obvious.
But, I still don't understand why the place holder for the update
statement doesn't work: I mean that syntax:
update_sql = "update SHARE set COMPANY_LOGO = ? WHERE ID =
8982167534873685924";