I have a form where a user can change his profile picture with the following property in my viewmodel:
public HttpPostedFileBase Image { get; set; }
This works great for the upload but how can I also display his picture?
Do I have to create another property like this?
public HttpPostedFileBase UploadedImage { get; set; }
public byte[] Image { get; set; }
It looks wrong, is there a way to do this with 1 property?
thank you