I recently created a website using the .net MVC framework, and one of the views contains an image with the src attribute referring to an action called Render. Here is an example:
<img src="XXX/render?..." />
public ActionResult Render()
{
return new FileContentResult(byte[], "jpg"); // something similar to this
}
Everything was working perfectly fine until the URL size exceeded its limits. I had no choice but to switch to using a POST request via AJAX. I attempted to use XMLHttpRequest and assign responseXML to the img's src attribute, but unfortunately, it did not work as expected.
Any suggestions on what steps should I take next?