title: how to check if blob column in mysql is null or empty
body: <p>I'm using the next code to show image in label , to set nothing to label when picture column is null :</p>
  
  <p><pre> <code> ResultSet rset2 = stmnt.executeQuery("select Picture from Pictures where Client_ID_pass =1" );
                      while(rset2.next()){
                          byte[] Passimg = rset2.getBytes("Picture");
                          //Resize The ImageIcon
                      ImageIcon Passimage = new ImageIcon(Passimg);
                      Image Passim = Passimage.getImage();
                      Image PassmyImg = Passim.getScaledInstance(PassLBL.getWidth(), PassLBL.getHeight(),Image.SCALE_SMOOTH);
                      ImageIcon newPassImage = new ImageIcon(PassmyImg);
                      PassLBL.setIcon(newPassImage);</p>
  
  <pre><code>                if(Passimg.length &lt; 0){
  PassLBL.settext("No Picture");                        
  PassLBL.setIcon(null);
                  }
                      }
  </code></pre>
  
  <p>I've tried the next :   </p>
  
  <p>if(Passimg.equals(null)
  {PassLBL.settext("No Picture");}</p>
  
  <p>and tried</p>
  
  if(Passimg == null)
  {PassLBL.settext("No Picture"); }
  </code></pre>
  
  <p>but didn't work !</p>