Possible to load files over 10mb using File module for non text based use cases?
Looking for a way to load a large file (> 10mb limit) in a script. Its possible to do for all text based files it looks like by using File.lines.iterator() but when I try to get the contents of a mp4 file > 10mb it doesn’t work.
I seem to think handling for files above 10mb is only for text. Can I ask what you’re looking to do with the file?
Thanks,
Chris
Read its contents and send it piecewise to an external site with multiple calls
I can’t say I’ve ever tried it but you could have a go with File.getReader() which seems to support reading in chunks of a fixed length. And, crucially, doesn’t haven anything documented about file size limitations.



