active-directory-dotnet-graphapi-console
active-directory-dotnet-graphapi-console copied to clipboard
Thumbnail upload not working
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 :(