1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
/**
* painting pour l'image de la catégorie
*
* @param stream
* @param object
* @throws IOException
*/
public void paint(OutputStream stream, Object object) throws IOException {
CategorieVue categorie = CategorieTransformer.metierToVue(this
.getGestCategorie().chargerCategorie((Integer) object));
Blob catImage = categorie.getImage();
try {
stream.write(catImage.getBytes(1, (int) catImage.length()));
} catch (SQLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
} |
Partager