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

Popular posts from this blog

qt - Using float or double for own QML classes -

javascript - AngularJS - Uncaught Error: [$injector:modulerr] Failed to instantiate module -

ios - Swift Array Resetting Itself -