La solucion a mi problema ya casi la tenia, solo hacia falta agregar algo al query, este queda asi:
Código PHP:
String id_foto=tes.getText();
try
{
res=sen.executeQuery("SELECT foto FROM fotos where id_foto='" + id_foto + "'");
if(res.next())
{
Image i=null;
Blob blob = res.getBlob("foto");
i= javax.imageio.ImageIO.read(blob.getBinaryStream());
ImageIcon image = new ImageIcon(i);
lbl1.setIcon(image);
}
}
catch(Exception e)
{
JOptionPane.showMessageDialog(this,e.getMessage());
}
Y funciona perfecto.
Saludos