DB.create_table? :fonts do primary_key :id String :name File :font_file end
class FontModel < Sequel::Model(:fonts) end font = FontModel.new do |m| m.name = "A Font' file = file.open(filepath) m.font_file = file.to_s # will not accept file.to_sequel_blob m.save end ----------------------------- font = FontModel[1] puts font.class #=> Sequel::SQL::Blob How do I retrieve the contents as a file? Thanks Paul F Fraser --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "sequel-talk" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/sequel-talk?hl=en -~----------~----~----~----~------~----~------~--~---
