❔ FTP Uploading Files bigger than 2GB
this is quite a difficult one to put to paper, but i have teams/discord and if need me and I can live share the code. this may be an easier option
in my WinForms Application I have the ability to upload using the WinSCP API. now part of this is its generates a file list so that if I push the repository through again it will only upload new files or modified files. to do this it puts the whole file in memory to generate some kind of checksum of the file using File Information (I'm still not sure how this code works as I have used some of it from a Game Updater.
when I wasn't using files over 2GB this was working flawlessly, how ever I'm now moving on to push larger files I'm reaching the 2GB limit with File.ReadAllBytes (and the 32bit windows memory issue)
so some research suggests I should be using File Stream, so I've modified my code for that but now its not copying the byte data over correctly. I tried a couple 5gb+ files and it only wrote between 1gb and 1.7gb on the FTP server.
I think it will be something completely obvious I but I'm loosing the will to live lol!!!!!
my byte reading code.
TYIA , any and all help appreciated
in my WinForms Application I have the ability to upload using the WinSCP API. now part of this is its generates a file list so that if I push the repository through again it will only upload new files or modified files. to do this it puts the whole file in memory to generate some kind of checksum of the file using File Information (I'm still not sure how this code works as I have used some of it from a Game Updater.
when I wasn't using files over 2GB this was working flawlessly, how ever I'm now moving on to push larger files I'm reaching the 2GB limit with File.ReadAllBytes (and the 32bit windows memory issue)
so some research suggests I should be using File Stream, so I've modified my code for that but now its not copying the byte data over correctly. I tried a couple 5gb+ files and it only wrote between 1gb and 1.7gb on the FTP server.
I think it will be something completely obvious I but I'm loosing the will to live lol!!!!!
my byte reading code.
TYIA , any and all help appreciated
