sqlite3-ruby

How can I get back a file from a blob? I have saved a file into a
SQLite3::Blob object and then into a db, but now I want to do the
reverse operation and I can't do it.

Thanks for help