I am using below jquery which reads the image input from file input and convert into base64 format to display which is working perfectly fine in googlechrome but not in IE. I wanted to acheive the same thing in IE. Please help
function readImage(input) {
if ( input.files && input.files[0] ) {
var FR= new FileReader();
FR.onload = function(e) {
$('#img').attr( "src", e.target.result );
$('#base').text( e.target.result );
};
FR.readAsDataURL( input.files[0] );
}
}
$("#asd").change(function(){
readImage( this );
});