public void setAvatar ( URL avatarURL ) { byte [ ] bytes = new byte [ 0 ] ; try { bytes = getBytes ( avatarURL ) ; } catch ( IOException e ) { LOGGER . log ( Level . SEVERE , "Error getting bytes from URL: " + avatarURL , e ) ; } setAvatar ( bytes ) ; }
Set the avatar for the VCard by specifying the url to the image .