What's wrong in your code?
After a careful read of your code, it seems fine to me. You are breaking the file down into 2048 byte chunks and sending each chunk.
YOu said that your problem is that you read the entire file into memory, but where does this happen?
Cheers
OK, another careful read...
This time I read it and got the idea you might be wanting to restart the reading from a particular point (say 25MB of that 50MB whopper?). So perhaps you are writing code to automatically resume an aborted upload?
In that case, pay special attention to the line in your code:
Code:
Get #FreeF, , LocData 'Get data from the file nCnt is from where to start the get
Looking at the comment here, I presume you have cut and pasted this from someplace else? No matter if you did, just keep in mind that the Get # command allows as the second parameter an offset value. This means you can specify where to start the reading from (i.e. the exact byte).
Alternatively you use the seek procedure to point the open file to the starting point.
Hope it helps