title: How to open image from mysql database?
body: <p>I can store an image in mySql database whose datatype was blob. I have stored the image in binary image format. I have stored the image in MYSQL with the help of this code</p>
  
  <pre><code>File file = new File("G:/photos/New Folder (2)/bhavana_gallery_10.jpg");
  
              byte[] bFile = new byte[(int) file.length()];
  
              try {
  
               FileInputStream fileInputStream = new FileInputStream(file);
  
               fileInputStream.read(bFile);
  
               fileInputStream.close();
  
              } catch (Exception e) {
  
               e.printStackTrace();
  
              }
  
  
  
  
      inpatient.setImagefile(bFile);
  </code></pre>
  
  <p>but i can open image in web application , can i any conversion need , what type conversion please tell me .........</p>