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

python - jinja2: TemplateSyntaxError: expected token ',', got 'string' -

Qt4: how to send QString inside a struct via QSharedMemory -

node.js - NodeJS remote terminal to Dropbear OpenWRT-Server -