Having problems with your account or logging in?
A lot of changes are happening in the community right now. Some may affect you. READ MORE HERE

WebFtpPut cannot send files larger than 2GB

WebFtpPut cannot send files larger than 2GB

The issue of being unable to send files larger than 2GB, with WebFtpPut, is due to a limitation with the integer data type, which has a maximum value of ‘2,147,483,647’ (equivalent of roughly two GB, when using numbers to represent bytes).

See the ‘In Computing’ section of the following Wiki article:

http://en.wikipedia.org/wiki/2147483647

The limitation does not only apply to the ‘number’ variable, which is used to specify ‘nBytes’, but also to the ‘nBytes’ parameter itself.  As ‘nBytes’ is also a number (Integer), a value higher than ‘2,147,483,647’, cannot be used here (even when hard coded).

An alternative would be to use the ‘WebFtpPutFile()’ function  instead, as it sends an actual file (only integer is the file handle).  However you may run into machine resource issues with such a large file, due to the file needing to be stored in memory (free / available RAM) - especially if running multiple users.

DISCLAIMER:

Some content on Community Tips & Information pages is not officially supported by Micro Focus. Please refer to our Terms of Use for more detail.
Top Contributors
Version history
Revision #:
1 of 1
Last update:
‎2015-04-27 16:31
Updated by:
 
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.