The value in the length data element of the BIN segment can be up to 15 characters long, which means the maximum length of a BIN segment is 999,999,999,999,999 bytes (fifteen 9s). However, the maximum size that WebSphere Partner Gateway supports is 2,147,483,647 bytes, which is the maximum signed integer value that a fullword can hold. The binary segment is a repeating segment with an unlimited number of repetitions, therefore it is unlimited for EDI.