Menu

I can't see the photo set on msn messen...

2010-03-07
2013-04-29
  • Fabiano Luz

    Fabiano Luz - 2010-03-07

    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;
    }

     
  • James Lopez

    James Lopez - 2010-03-18

    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.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.