/// <summary> /// Update picture of existing user. /// </summary> /// <param name="userId">Id of the user.</param> /// <param name="pictureData">Picture data.</param> /// <param name="fileName">Name of the picture.</param> /// <param name="mimeType">Extension of the picture.</param> public void UpdateUserPicutre(string userId, byte[] pictureData, string fileName, string mimeType = "image/jpeg") { string url = string.Format("{0}/{1}/picture", UrlConstants.USER, userId); BaseInfoProvider <byte[]> .PostFile(url, pictureData, fileName, mimeType, "kermit", "kermit"); }