I am curious about best practices.
I have a Windows Server hosting IIS ASP.NET Web App.
I have an image on the server.
I am downloading the image as a byte array from JavaScript by calling a generic handler which returns the byte array.
i.e.
var jpegByteArray = 'http://myurl/mygenericpage.ashx'
But I could do the same thing using a Web API and returning the JSON object.
What is the fastest, best way option to use?
Thanks