You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The file is currently opened using file.open(args.filename);, which does not include the std::ios::binary flag.
This causes problems when uploading non-text files (e.g., binary files like images or executables).
To properly handle these types of files, it is recommended to open the file using file.open(args.filename, std::ios::binary);
Steps to Reproduce:
up an *.psd file to the oss sever
error in line:https://github.com/minio/minio-cpp/blob/40824d0872861b06965a032a714a8f4f9097fb32/src/utils.cc#L601
OS: Windows 11 22631.4037
Compiler:MSVC 2019 X64
The text was updated successfully, but these errors were encountered:
https://github.com/mrjimenez/pupnp-backup/blob/c61460be44645f5c9040c1cf4cf7ac5efbe6b01d/cmake/CmDaB.cmake#L43
I encountered an issue when using the library for file uploads.
Description
The file is currently opened using
file.open(args.filename);
, which does not include thestd::ios::binary flag
.This causes problems when uploading non-text files (e.g., binary files like images or executables).
To properly handle these types of files, it is recommended to open the file using
file.open(args.filename, std::ios::binary);
Steps to Reproduce:
https://github.com/minio/minio-cpp/blob/40824d0872861b06965a032a714a8f4f9097fb32/src/utils.cc#L601
OS: Windows 11 22631.4037
Compiler:MSVC 2019 X64
The text was updated successfully, but these errors were encountered: