User-1330468790 posted
Hi Nirvriti Sharma,
Could you please specify what the problem is?
The codes are correct generally. I think you might have a problem about displaying the image. That way, we might need to dig more for storing the image.
If you upload the image to the server and store the path of the image in the database, then you just need to confirm the path is correct.
However, if you store the image with binary/based64 encoded format in database, you might need to add a prefix "data:image/png;base64, " as below.
imgPhoto.ImageUrl = "data:image/png;base64," + base64string;
Hope this can help you.
Best regards,
Sean