Ruby on Rails Friday, April 29, 2011

On Apr 29, 10:21 am, News Aanad <news.anan...@gmail.com> wrote:
> Hi,
> I am reading one .png file in ruby. I have created a table "Photo_info"
> which has filed "photo_data" with data type varchar(255).
> Now if I want to stroe the data of file in the field "photo_data".
> Can anybody say how to do?

Like i said in your earlier thread, you need to make the column a blob
one (or the image really is tiny (a few hundred bytes), then a
varbinary)

Fred

--
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@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

No comments:

Post a Comment