-
-
Save parzibyte/92dc49b7022971d51e06d0c6f54f02bc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@app.route("/tomar_foto_descargar") | |
def descargar_foto(): | |
# La respuesta puede venir de cualquier lugar | |
respuesta = Response(obtener_frame_camara()) | |
respuesta.headers["Content-Type"] = "image/jpeg" | |
respuesta.headers["Content-Transfer-Encoding"] = "Binary" | |
respuesta.headers["Content-Disposition"] = "attachment; filename=\"foto.jpg\"" | |
return respuesta |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment