title: How to get the format(ex:jpen,png,gif) of image file (BufferedImage) in java
body: <p>i want to get the buffered image format or type of image using java,</p>
  
  <pre><code> InputStream stream = request.getResponseStream();   
   BufferedImage image=  ImageIO.read(stream);
   LOGGER.info(image);
  </code></pre>