0 is null or not an object error
<p>Am using the following javascript programm for convert pdf file to binary file .It will work properly in FireFox.but in IE it will display the "0 is null or not an object javascript" .how to solve this? </p>



<pre><code>&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"&gt;

&lt;html xmlns="http://www.w3.org/1999/xhtml"&gt;
&lt;head runat="server"&gt;
    &lt;title&gt;Untitled Page&lt;/title&gt;
&lt;/head&gt;

&lt;script type="text/javascript" src="js/jquery-1.7.2.min.js"&gt;&lt;/script&gt;


&lt;script&gt;


    $(document).ready(function(){

        $('#document_upload').change(function()
  {
   var fileList = this.files;
   var file = fileList[0];
   create_blob(file,function(blob_string)
   {
    replace_binary_data=blob_string;
    $("#document_binary").val(replace_binary_data);
   }); 
  });    


        function create_blob(file, callback) 
  {
   var reader = new FileReader();
   reader.onload = function()
   { 
    callback(reader.result) 

   };
   reader.readAsDataURL(file);
  }  


    });

&lt;/script&gt;    

&lt;body&gt;

    &lt;input type="text" id="document_binary" value=""/&gt;
    &lt;div id="upload_document"&gt;
        &lt;input type="file" name="document"  id="document_upload"/&gt;
    &lt;/div&gt;

&lt;/body&gt;
&lt;/html&gt;
</code></pre>
