Frank Liou <fk2654159...@gmail.com> Wrote in message: > conn = engine.connect() > encoded = base64.b64encode(getbody) > binary_string = binascii.a2b_base64(encoded) > puresql = sqla.text("INSERT INTO friends(name) VALUES(:binary_string)") > conn.execute(puresql,binary_string = binary_string) > >
Start by specifying Python version. Since you're only asking about two lines, replace the rest with something that people can actually run. And instead of just printing binary_string, show its type as well. -- DaveA -- https://mail.python.org/mailman/listinfo/python-list