Retrieve blob field


I saved a text into blob column in mysql table
How I can I retrieve it as a text
I use this lines:

res = db.query(squery)

if (res.num_rows != 0) then
res.each do |row|
text = row[0].to_s

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs