Trying to read a json file (562 KB) from the file ...
# suitescript
s
Trying to read a json file (562 KB) from the file cabinet and getting the error
SSS_MAXIMUM_READ_SIZE_EXCEEDED
. Any suggestions for getting around this
N/file
error with
Reader.readChars(fileObj.size)
? I didn’t see this error in the documentation and was thinking of just looping every x number of chars until I get the whole json object from the file cabinet unless anyone had a better idea.
b
whats wrong with File.getContents()?
s
yes, thank you! I overlooked using that simple method for <10 MB.