ruby on rails - get an image and parse it as binary -
i'm using curb image :
curl = curl::easy.new("http://www.myimage.com/path/to/my.jpg") curl.perform
now need save returned curl.body_str
database, expecting type binary
. body_str
returned string, how can massage such can save database binary?
Comments
Post a Comment