title: How to convert ImageIcon to File object wihout saving it into disk?
body: <p>I want to send ImageIcon to database using jdbc.
  I need to File object to do that.
  How to convert ImageIcon to File wihout saving it into disk?</p>
  
  <pre><code>File fBlob = new File(imageIcon.getImage());
  FileInputStream is = new FileInputStream ( fBlob );
  preparedStatement.setBinaryStream (3, is, (int) fBlob.length() );
  </code></pre>