Downloading a huge file off the database

Right now I am working on a system to download files as longtext that could be up to 4gb, the issue is... as I use the method of
<a [href]="REQ.RES2 | safe" download='${REQ.FILENAME2}'>Download part 2
The whole browser lags if the file is bigger than 10 mb, is there any more effective way I could go about downloading huge files such as this?

If you want to have huge files you better store them in the file system in a location that allows them to be served via HTTP. There is an example showing how to save file to the file system here.