I split a file into chunks, and then insert the chunk data into sqlite db file. As below
foreach (var chunk in chunks)
{
Connection.Insert(chunk);
}
When the file size is less than 2GB, all is ok.
But if the file size is more than 2GB, it occurs an OverflowException while the sum of the chunks is just over 2GB.
I split a file into chunks, and then insert the chunk data into sqlite db file. As below
When the file size is less than 2GB, all is ok. But if the file size is more than 2GB, it occurs an OverflowException while the sum of the chunks is just over 2GB.
Why? And how to solve it?
Thanks!!