public UserConfig updateIcon(String file,UserConfig config){
  config.addCredentials(this);
  String xml=POSTIMAGE(this.url + "/update-user-icon",file,"image.jpg",config.toXML());
  Element root=parse(xml);
  if (root == null) {
    return null;
  }
  try {
    config=new UserConfig();
    config.parseXML(root);
    return config;
  }
 catch (  Exception exception) {
    this.exception=SDKException.parseFailure(exception);
    throw this.exception;
  }
}

public UserConfig updateIcon ( String file , UserConfig config ) { config . addCredentials ( this ) ; String xml = POSTIMAGE ( this . url + "/update-user-icon" , file , "image.jpg" , config . toXML ( ) ) ; Element root = parse ( xml ) ; if ( root == null ) { return null ; } try { config = new UserConfig ( ) ; config . parseXML ( root ) ; return config ; } catch ( Exception exception ) { this . exception = SDKException . parseFailure ( exception ) ; throw this . exception ; } }
update the user ' s icon . the file will be uploaded to the server .
