I am using following function to display byte[] array image in asp.net mvc
public ActionResult Images(int id)
{
byte[] imageData = GetImage(id);
string contentType = "image/jpeg";
return File(imageData, contentType);
}
<img src="/Home/Images/2">
So Problem is this i don't want to show /Home/Images/2 . I want to show any random name with image format like this
> /Home/Images/imgnameetc.jpg
Note: I have image just byte[] array form.No any other information like name ,image format
I did search on it but i can't found any solution
Please help.