Fix proposal for WAGON-384

Changed the API to use long rather than int for file length.