method

unescape_bytea

rails latest stable - Class: ActiveRecord::ConnectionAdapters::PostgreSQL::Quoting
unescape_bytea(value)
public

Unescapes bytea output from a database to the binary string it represents. NOTE: This is NOT an inverse of escape_bytea! This is only to be used on escaped binary output from database drive.