how to download image in browser -angularjs
<p>I am showing image list in a html table. I have one column in the table as image name and made it as link so user can click and download the image. The image list come from database which are saved as byte array and while sending to client side I am converting it to static object as shown below
given below</p>

<pre><code>FileContent = Utilities.GetString(item.FileContent);
//GetString method
public static object GetString(byte[] bytes)
{
    try
    {
        MemoryStream stPictureSource = new MemoryStream(bytes);

        var sr = new StreamReader(stPictureSource);

        return sr.ReadToEnd();
    }
    catch(Exception ex)
    {
        Logger.Log(ex);
        return string.Empty;
    } 
}           
</code></pre>

<p>So,Can some one have an idea, how to download image in browser.
Please let me now if the question isnt clear...</p>