Skip to content

Commit

Permalink
Scenario fix for binary files
Browse files Browse the repository at this point in the history
  • Loading branch information
meyertst-aws committed Sep 27, 2023
1 parent f0a7b09 commit c722b29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cpp/example_code/s3/s3_getting_started_scenario.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ bool AwsDoc::S3::S3_GettingStartedScenario(const Aws::String &uploadFilePath, co

Aws::IOStream &ioStream = outcome.GetResultWithOwnership().
GetBody();
Aws::OFStream outStream(saveFilePath);
Aws::OFStream outStream(saveFilePath, std::ios_base::out | std::ios_base::binary);
if (!outStream.is_open()) {
std::cout << "Error: unable to open file, '" << saveFilePath << "'." << std::endl;
}
Expand Down

0 comments on commit c722b29

Please sign in to comment.