skip to Main Content

Display image from flask send_file (ajax response) into the image tag – Jquery ajax

How do I display the image from a flask send_file ajax response HTML file <button class="button" id="start">Start</button> <script> //start button click event $('#start').click(function() { $.ajax({ url: 'http://127.0.0.1:5000/capture', type: 'GET', contentType: "image/jpg", success: function(result) { document.getElementById('frame').src = 'data:image/jpg,' + result; }…

VIEW QUESTION
Back To Top
Search