sql >> Base de Datos >  >> RDS >> PostgreSQL

Archivo zip a bytes Python 3

Si desea leer el archivo JSON como bytes, debe abrir el archivo en modo binario:

with open(filename, 'rb') as file_data:
    bytes_content = file_data.read()