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.

Beginner Asked on November 11, 2019 in SuiteScript.
Add Comment
1 Answer(s)

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?



Intermediate Answered on November 12, 2019.

Read its contents and send it piecewise to an external site with multiple calls

on November 12, 2019.

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.

on November 12, 2019.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.
  • This site made possible by our sponsors:   Tipalti   Celigo   Limebox   Become a Sponsor   Become a Sponsor