Reputation: 2357
I am using ASP.Net MVC 5 WebImage helper, I try to get a image like the following
var image = new WebImage("~/Content/Temp/" + user.id + ".jpg");
this only works when the file extension is jpg, how do you get the image if you are not sure what the file extension is, I also tried to use:
var image = new WebImage("~/Content/Temp/" + user.id + ".*");
but * is a invalid character.
Upvotes: 0
Views: 236