title: Can't read word and pdf files using gwt
body: <p>I want to read .doc and .pdf files in GWT client. I'm using the following package: <code>org.vectomatic.file</code></p>
  
  <p>The following is my code:</p>
  
  <pre><code>fileUpload.addChangeHandler(new ChangeHandler() {
  
    @Override
    public void onChange(ChangeEvent event) {
        uploadChecking();
  
        event.getNativeEvent().getEventTarget();
        FileList fileList = FileList.fromEvent(event.getNativeEvent());
        FileReader reader = FileReader.create();
        File file = fileList.get(0);
  
        reader.readAsBinaryString(file, progressCallback);
    }
  });
  
  ProgressCallback progressCallback= new ProgressCallback() {
  
          @Override
          public void onError(ProgressEvent e) {
              // TODO Auto-generated method stub
          }
  
          @Override
          public void onLoad(ProgressEvent e) {
              String result =e.getResult();
      }
  }
  </code></pre>
  
  <p>If I am uploading a .txt file then it give correct data from file in <code>result</code>. When uploading PDF and .doc it gives some characters. Is there any way to get correct data or is there any way to read bytes directly from file because I think it can overcome this problem.</p>
  
  <p>I want the file contents client side because it need some processing before going to server.</p>