question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Uploading larger then 2GB file

See original GitHub issue

I`m unable to upload 2.06 GB file, for smaller files it just works fine.

File size: 2215659520 bytes Upload Status: Failed Bytes send: 2139095040 bytes Upload Exception Message: Invalid format. Google.Apis.Storage.v1 1.20.0.734 .NET 4.5.2 Mono platform

Any suggestion or this is a bug?

Code:

var localFile = "/path/to/2.06.gb.tar";
var storageFile "/folder/file.tar";

Console.WriteLine("File size:" + new FileInfo(localFile).Length);

               using (var f = File.OpenRead(localFile))
               {
                   var u = Service.Objects.Insert(new Object()
                   {
                       Bucket = BucketName,
                       Name = storageFile,
                       ContentType = "application/octet-stream",


                   }, BucketName, f, "application/octet-stream");




                   var upload = u.Upload();

                   Console.WriteLine("Upload Status: " + upload.Status);
                   Console.WriteLine("Bytes send: " + upload.BytesSent);

                   if (upload.Exception != null)
                   {
                       Console.WriteLine("Upload Exception Message:" + upload.Exception.Message);
                       if (upload.Exception.InnerException != null)
                       {
                           Console.WriteLine("Upload Inner Exception Message:" +
                                             upload.Exception.InnerException.Message);
                       }
                   }

                   return upload.Status;
               }

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:13

github_iconTop GitHub Comments

1reaction
jskeetcommented, Feb 22, 2018

I think that would be best - everything points towards this being a mono bug. Closing for now.

0reactions
LindaLawtoncommented, Feb 22, 2018

Great research though @jskeet i have seen this before now i know where to point people to .

Read more comments on GitHub >

github_iconTop Results From Across the Web

Send and Transfer Large Files
Share files directly from your cloud storage with anyone, or separately send up to 100 GB (upgradable to 250 GB) with Dropbox Transfer....
Read more >
The 11 Best Ways to Send Large Files
Best Ways to Share Big Files · Upload your files to a cloud storage service. · Use WeTransfer, a free online service. ·...
Read more >
How to Send Large Files Over the Internet
You can send a file as large as 20GB for free. A basic $2.99-per-month plan covers files up to 50GB, the $10.99-per-month Pro...
Read more >
How to Send Large Files in 2023 [Three Best Free Options]
Learn how to send large files over the internet for free. Use three common and easy options, from cloud storage to file transfer...
Read more >
Send large files free | File sharing | File upload | File transfer
Send large files for free with TransferXL ✓ without registration ✓ secure & fast file upload ✓ file transfer up to 200 GB....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found