How to show Image Preview using javascript or jquery in Internet Explorer
<p>I'm not able to show the image preview in Internet Explorer.</p>

<p>I'm using FileReader() it working fine all the browsers but not in ie(version 9) and lower versions.</p>

<p>I need the alternative for FileReader to diplay the preview.</p>

<pre><code>    $('#FileUpload').live('change', function () {
            var result = checkFileType();
            alert(result);
            var fileList = this.files;
            var file = fileList[0];
            var r = new FileReader();
            r.onload = function () {
                var binimage1 = r.result;
                // binimage1 = binimage.replace('data:image/jpeg;base64,', '');

                //var imag = "&lt;img " + "src='" + "data:image/jpg;base64," + binimage + "' style='width:100px'/&gt;";

                //  var src = $('#prevImage').attr("src").replace("../../images/nologo.gif", image);


                $('#prevImage').attr("src", binimage1);
                //                    $("#partial1").html(imag);

            };
            r.readAsDataURL(file);
            // r.readAsBinaryString(file);

            //r.readAsDataURL(file);

        });
</code></pre>
