active-directory-dotnet-graphapi-console icon indicating copy to clipboard operation
active-directory-dotnet-graphapi-console copied to clipboard

Thumbnail upload not working

Open mariobrosch opened this issue 8 years ago • 0 comments

Have all right to do edits in azure. Only problem which I come into is I can't update an thumbnailphoto.

This is the code I use:

 var imageBytes = Convert.FromBase64String(imageData);
 var stream = new MemoryStream(imageBytes);
 user.ThumbnailPhoto.UploadAsync(stream, "image/jpeg", false, true).Wait();

and my datastring is something like a huge base64 string as you can image.

I tried several times. One time I saw the image in Azure, but I wasnt able to do the trick again :(

mariobrosch avatar Feb 22 '17 15:02 mariobrosch