25,081 questions
No angular will be needed here.
You might choose to store the image URL or if small enough the data URL (image bytes in base64 format).
To display the image you need to:
- Create a directory extension that will hold the persisted data.
- Define a claim type that will store the image URL or base 64 data (E.G: imageClaimType)
- Add it as an OutputClaim in your AAD-UserReadUsingObjectId technical profile and map it to the directory extension.
- Add it as a PersistedClaim in your AAD-UserWriteProfileUsingObjectId technical profile and map it to the directory extension.
- Include similar markup and code into your profile edit template:
To edit it you need to:
- Add a jQuery plugin and/or javascript code to submit the selected image to your API, as defined in next step:
- Create/Extend your API so that it handles the file upload, optionally stores it (you will store the URL) and/or (just) serves the image (you will store the image data).
- Add javascript code that assign the new image URL or data to the imageClaimType element value (and thus into the policy claim of the same name).