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 -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -