I am creating little personal flags for each user and since they are small I think it would be best to store them as a blob (:binary), but I can'' find anything that i understand. Can anyone point me at a tutorial on handling images in rails? --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Yes , You can simply save the image in the database. Add a column in a table having type BLOB. in comtroller take a object of the table let us say Image table = Image.new table.image = "image" table.save() Thanks Ekta On Mar 28, 4:06 am, Col Wilson <col.wilson.em...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> wrote:> I am creating little personal flags for each user and since they are > small I think it would be best to store them as a blob (:binary), but > I can'' find anything that i understand. > > Can anyone point me at a tutorial on handling images in rails?--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Thanks. On Mar 28, 6:21 am, Freg <ekta.29j...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Yes , You can simply save the image in the database. > Add a column in a table having type BLOB. > > in comtroller take a object of the table let us say Image > > table = Image.new > table.image = "image" > table.save() > > Thanks > Ekta > > On Mar 28, 4:06 am,ColWilson<col.wilson.em...-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> > wrote: > > > I am creating little personal flags for each user and since they are > > small I think it would be best to store them as a blob (:binary), but > > I can'' find anything that i understand. > > > Can anyone point me at a tutorial on handling images in rails?--~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---