I'm building an AngularJS Application, for Service I'm using .NET C# for coding purpose. I'm retrieving Images from SQL Server as Byte Array and I'm sending the Byte Array to AngularJS and it displays the Image in the HTML.
I followed the same as like in the post Load image from C# Byte array and place image in html tag using AngularJS
But I'm facing the performance issue in my data. My database contains the byte array size is approx. 2 to 3 MB. So, based on Internet Bandwidth its struggling to load. So, kindly assist me how to compress the Byte Array without Scaling the Image ?
I searched a lot in web, but every post they compressed in terms of Scaling the Image. But I need to compress the Byte Array without Scaling.