Mark support behaves very differently on S40 and S60.

"The general contract of mark is that, if the method markSupported returns true, the stream somehow remembers all the bytes read after the ..."
"Somewhat" seems to be implemented differently among Nokia devices.

N6230i - there is no problem using eg. 64 MB readlimit. I've been told that N6233 and 6280 are ok as well (can't confirm myself).I do not have access to other S40 devices, sorry.

However, on every S60 I tried (N95, N5500, N70), calling mark(64 * 1024 * 1024) on FileInputStream raises OutOfMemoryError.