1000byte limit on fileread
Posted: Oct 23rd, '17, 16:26
I'm writing a GIF file parser and it works on small images but I can't read files bigger than 1000 bytes using
toBinaryData(readfile 'xxxx.gif')
I know some file primitives have been added to GP but I've been unable to work out how to use them
Help! :)
[EDIT]
There's not a 1000 byte limt - it was pure coincidence that it worked on a file < 1000 but failed on a file that was 1003 long
The bug seems to be not reading until the end of the file - I can get it to fail on files < 1000
my test code is Here are some gif files that show issue
is OK
is not
is not
is not
toBinaryData(readfile 'xxxx.gif')
I know some file primitives have been added to GP but I've been unable to work out how to use them
Help! :)
[EDIT]
There's not a 1000 byte limt - it was pure coincidence that it worked on a file < 1000 but failed on a file that was 1003 long
The bug seems to be not reading until the end of the file - I can get it to fail on files < 1000
my test code is Here are some gif files that show issue
is OK
is not
is not
is not