Update static/index.html
Browse files- static/index.html +2 -1
static/index.html
CHANGED
|
@@ -11,7 +11,8 @@
|
|
| 11 |
xhr.onreadystatechange = function() {
|
| 12 |
if (xhr.readyState == 4 && xhr.status == 200) {
|
| 13 |
var resultImage = document.getElementById("resultImage");
|
| 14 |
-
|
|
|
|
| 15 |
}
|
| 16 |
};
|
| 17 |
|
|
|
|
| 11 |
xhr.onreadystatechange = function() {
|
| 12 |
if (xhr.readyState == 4 && xhr.status == 200) {
|
| 13 |
var resultImage = document.getElementById("resultImage");
|
| 14 |
+
var imageSrc = "data:image/jpeg;base64," + xhr.responseText;
|
| 15 |
+
resultImage.src = imageSrc;
|
| 16 |
}
|
| 17 |
};
|
| 18 |
|