I'm having trouble displaying the image as a blob using jQuery:
Here is my code:
var file = $("#imgGaleria3")[0].files; if (file) { var reader = new FileReader(); reader.readAsDataURL(file); reader.onload = function(e) {
And all the time I get the same error: uncaught TypeError: Failed to execute 'readAsDataURL' in 'FileReader': parameter 1 is not of type 'Blob'.
How can i decide? I am trying to use some methods to read data from a file object using FileReader, but nothing solves my problem.
thanks for ur help guys
jquery file html5
Nega developer
source share