'is it possible to insert a gzipped string (Json string) as a varchar in postgres

Will I run into any weird byte sequence if I attempt to store a binary (a gzipped Json string) in a varchar column. Or Should I base64 encode it after compressing.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source