I am loading a file into a byte array and then converting it to string using the following method.
string str1 = Convert.ToBase64String(fileBytes);
It works fine with the small files, but when the files fet too bigger like 170MB, the application throws 'system.outofmemory' exception.
So to avoid the problem, I am trying to break the byte array into chunks and convert and append it to the string. I need to make sure that I read all the chunks until append each chunk at the end of the string. Need the sample code for breaking into chunks and looping through..