Adding the photo in WSP Active Directory users. part 5

This commit is contained in:
dev_amdtel 2015-05-25 12:37:17 +03:00
parent f87b692265
commit f65ab5d5b8
2 changed files with 80 additions and 3 deletions

View file

@ -7981,9 +7981,7 @@ namespace WebsitePanel.Providers.HostedSolution
try
{
runSpace = OpenRunspace();
Command cmd;
cmd = new Command("Import-RecipientDataProperty");
cmd.Parameters.Add("Identity", accountName);
cmd.Parameters.Add("Picture", true);
@ -8018,7 +8016,9 @@ namespace WebsitePanel.Providers.HostedSolution
if (result.Count > 0)
{
//res.Value = ;
res.Value =
((Microsoft.Exchange.Data.BinaryFileDataObject)
(result[0].ImmediateBaseObject)).FileData;
}
}
finally