Random Access Files> 2GB with Android SDK

can anyone tell me how to randomly access a file beyond 2 GB using the Android SDK. I tried to find position> 2147483647 and received an exception: "The value is too large for a particular data type." This is odd because the search command parameter is of type "long". See the sample code for more details:

RandomAccessFile    BigFile;
BigFile = new RandomAccessFile(sMyFileName, "r");
BigFile.seek(2147483648);
   --> Exception

Thanks for any help, Michael

+3
source share
1 answer

native/IO (system). / . - EOVERFLOW ( " " ). lseek, , .

: 64- "":-) JRE , IIRC. , Android.

: FAT32, 2 , , Android 2.x( // / IO lib - - " " ).

+3

Source: https://habr.com/ru/post/1769598/


All Articles