using binary and blob from_string did the trick. thanks!