try { File tmp = File.createTempFile("photo","tmp",null); FileOutputStream fos = new FileOutputStream(tmp); fos.write((byte[])attribute.get()); fos.close();   photo.setIcon(new FileImageIcon(tmp)); return; } catch(java.io.FileNotFoundException e) { e.printStackTrace(); } catch(java.io.IOException e){ e.printStackTrace(); } photo.setText("photo kann nicht angezeigt werden");  }
    public void setValue(SComponent component, Attribute attribute)	throws NamingException    {      this.oldAttribute = null;      this.oldAttribute = (BasicAttribute)attribute;      SPanel panel = (SPanel)      SLabel photo = (SLabel)panel.getComponent(      if (attribute == null) {        photo.setText("kein Photo vorhanden");        return;      }