I have stored images in my database and need to serve these images to the user on his webbrowser.
My problem is that the following method, which serves these images, is causing my webbrowser to consume a lot of memory (600 MB). The reason I know this is the problem is because if I return null, the memory usage stays pretty much the same and is low.
I am only calling this method for accessing 5 images. All not larger than 5 mb.
I'm showing an image as followed by calling the following in my view (angularjs):
<img ng-src="http://localhost:8080/myapp/show/{{user.id}}"
Any tips/advice is greatly appreciated.