Le encode la fonction code de bytea en texte. select encode(est_name::bytea, 'base64') from establishments; http://www.postgresql.org /docs/current/static/functions-binarystring.html#FUNCTIONS-BINARYSTRING-OTHER