Now, as for your array of bytes, theoretically the maximum size is ~2 billion bytes, but you will never be. able to allocate that size from a 32 bit process. Same goes for your 420. Mbytes array, allocating this from a 32 bit process will certainly lead to. OOM failures, as a result of heap fragmentation.