forge-api-dotnet-client icon indicating copy to clipboard operation
forge-api-dotnet-client copied to clipboard

Bucket object size limitation

Open JarlPed opened this issue 4 years ago • 2 comments

It appears that uploading a file of size 2050 MB to a Bucket Object works out fine for this SDK, but when I try to fetch the response from the server, I get an exception for the Json handle. I presume that the "size" object in the json response is formatted in 32-bit integer? Causing an issue where the json formatting cannot convert a 64-Bit integer to 32 bits.

Is this only an issue at the client side?

My exception reads: Could not convert to integer: 2149643321. Path 'items[0].size'.

JarlPed avatar Nov 19 '20 13:11 JarlPed

I was actually able to change the source code to allow uploads for 2050+ MB by changing the 32 bit integers with 64 bit "long" integers. However, I get an issue when translating to SVF in the cloud (tested a .rcp file with zipped supporting file content). I may perform a pull request if there's any interest for this.

JarlPed avatar Nov 26 '20 11:11 JarlPed

Hi, you are very welcome to do a pull request

cyrillef avatar Nov 26 '20 12:11 cyrillef