3
I don’t know how to save the image in the database.
foto =cv2.imread('imagem.jpg')
hora = str(hora.day) + '/' + str(hora.month) + '/' + str(hora.year) + '-' + str(hora.hour) + ':' + str(hora.minute) + ':' + str(hora.second)
cursor.execute('SELECT * FROM acesso_usuarios.william')
cursor.execute('INSERT INTO william (entrada, foto) VALUES (?, ?), (hora, foto))
It worked, but how do I save it in jpeg
– william jeferson