Sending 1MB> files from the server to client.

Hi all,
I’m making a logging system and I would like admins to be able to download the current list which can sometimes be a >1MB txt file.
I currently use the net library to send 1024 character chunks to the client.
This has been slow on some occasions, and I’m wondering if there’s a better alternative anyone has used.
The TXT file is in a JSON format.


Pretty sure there’s no better alternative.

How about MySQL?

util.Compress if you aren’t already doing so.

Warning: util.Compress("") == nil, util.Decompress("") == nil and util.Decompress(nil) == nil

What about MySQL? It’s a method to save data, not transfer it from client to server and vice versa.