I'm calling File.ReadAllBytes(PATH);
, the file I'm loading is very large (about 2GB), I'm getting a SystemOutOfMemory
Exception, how can I solve this??
NOTE: the program is made to load large files!
Thanks in advance.
EDIT: I'm trying to get those bytes, then compress them in some way, then convert them to a string, then reconvert the string to a byte array then to a file.