I have the bytes of a file saved in my Django database. I want users to be able to download this file.
My question is how do I convert bytes into an actual downloadable file. I know the file name, size, bytes, type and pretty much everything I need to know.
I just need to convert the bytes into a downloadable file. How do I do this?
I don't mind sending the file bytes over to the front-end so that JavaScript could make the file available to download. Does anyone know how to do this in JavaScript?