Hi folks,
my envirionment: Nav 2009 R2 Classic client, no RTC
my challenge: import xml files > 2 GB in size ( using INSTREAM)
my problem: the file.LEN reports the wrong file size, instead of 2.478.870.528 Bytes I got -1.7....... somewhat. (Minus!!!)
Regardles of the field type: Integer, BigInteger, Decimal.
Even if I use automation Shell32 ... item.size, it's always the same.
Looks like there is a limitation in the interface to the max. values of an integer.
Is there any other way, to get the file size?
Aside from "run.command 'dir filename > tempfile.txt"
and reading the tempfile.
Svensk.Tiger (Henning Möller)
PASS Multibank Solutions AG
(Kaum macht man was richtig, schon geht es. / Once you do it right, suddenly it works.)
0
Comments
Any value larger than this will yield a 50% probability of the leftmost bit being "1"....which indicates a negative value.
I don't think that you wil be able to work around this in NAV....have you tried to use FileSystemObject automation objects?
even if I have the correct file size, INSTREAM stops right at the beginning with a EndOfStream.
no chance, to do this in NAV, because the "TEXT"-file has recordsizes larger than 8 KB.
So I have to Split the file outside NAV
PASS Multibank Solutions AG
(Kaum macht man was richtig, schon geht es. / Once you do it right, suddenly it works.)