Upload a big file using Sketchup::Http::Request

Are you trying to read a binary file in text mode (File.read without mode specified) ?

If you are not using a system other than Windows, then you need to pay attention to the "rb" parameter, because Windows corrupts binary data when it reads them in text mode.

1 Like