browser - createObjectURL unsupported in Opera -


checking adress: http://caniuse.com/#feat=bloburls can see desktop browser no support feature. how can find workaround without change in code?

var jpeg = newblob(imgdata.array.buffer, "image/jpeg");  var url = domurl.createobjecturl(jpeg); 

if use case show thumbnail of picture user selects, can create data uri file uploads. tested under opera 12.13 work couple meg image:

<script> function handlefiles(files) {     var reader = new filereader();     reader.onload = function(evt) {         document.getelementbyid("img1").src = evt.target.result;     }     reader.readasdataurl(files[0]); } </script>  <img id="img1"> <form>     <input type="file" onchange="handlefiles(this.files)"> </form> 

Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -