I don't know what you are trying to ask, there's a method for setting the owner display picture. Please ensure you have the last SVN JML version in order to avoid problems retrieving such picture.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
because I can not see the photo set on msn messenger 9.0? What's happening?
its my code:
public static MsnObject getDisplayPicture(MsnMessenger messenger) {
BufferedImage imagem = null;
try {
imagem = ImageIO.read(new File("D:/alana.jpg"));
} catch (IOException ex) {
Logger.getLogger(BasicMessenger.class.getName()).log(Level.SEVERE, null, ex);
}
ByteArrayOutputStream bos = new ByteArrayOutputStream();
try {
ImageIO.write(imagem, "JPG", bos);
} catch (IOException ex) {
Logger.getLogger(BasicMessenger.class.getName()).log(Level.SEVERE, null, ex);
}
byte bImg = bos.toByteArray();
String location = null;
MsnObject obj = MsnObject.getInstance(messenger.getOwner().getEmail().getEmailAddress(), bImg);
obj.setCreator(messenger.getOwner().getEmail().getEmailAddress());
obj.setType( MsnObject.TYPE_DISPLAY_PICTURE );
obj.setSize( bImg.length );
obj.setLocation( location );
return obj;
}
I don't know what you are trying to ask, there's a method for setting the owner display picture. Please ensure you have the last SVN JML version in order to avoid problems retrieving such picture.