title: How to append/paste bufferedImage into a Word or RTF document using Java?
body: <p>I created a Microsoft Word document and tried to write the buffered image to it but all I got was garbled text. Is there a way to write (preferably append) a buffered image to a doc or RTF file?</p>
  
  <p>I want to avoid using docx4j or iText or any external package for that matter due to some constraints. But if there is no other way then please do let me know.</p>
  
  <p>My code in case anyone needs for reference:</p>
  
  <pre><code>ps_file = new File("ps_file.doc");
  ImageIO.write(i1, "jpg", ps_file);
  </code></pre>