NemisisJedi

I am using the DownloadFile function via a FTPConnectionMTA and i am getting the following error on this bit of code

ERROR = Arithmetic operation resulted in an overflow.

CODE

mFtp.DownloadFile("REMOTEFILENAME", "LOCALFILENAME", 2148751482, 0)

I am resuming a download of a file that has a remoteSize of 7243113984

Does anyone know why this is happening? I believe that the download is failing as the input is an integer data type which is a max value of 2147483647, and my value is above it. Is this a bug? Should it be a long data type instead of an integer??

Thanks for your help in advanced.

ERROR = Arithmetic operation resulted in an overflow.

CODE

mFtp.DownloadFile("REMOTEFILENAME", "LOCALFILENAME", 2148751482, 0)

I am resuming a download of a file that has a remoteSize of 7243113984

Does anyone know why this is happening? I believe that the download is failing as the input is an integer data type which is a max value of 2147483647, and my value is above it. Is this a bug? Should it be a long data type instead of an integer??

Thanks for your help in advanced.