How to create a blob to a file content and save it to postgre sql using ruby -


hi um facing issue of creating blob file , save binary column in postgre sql using rails . still dont have idea of how start it. happy if 1 can tell me way it.

file.each_line |line|    line = iconv.conv('utf-8', 'iso-8859-1', line) 

i want save file binary data (as binary large object) , file contains string

if looking gem this, carrier-wave should helpflul: https://github.com/diogob/carrierwave-postgresql


Comments

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -