Skip to content

Commit 3719726

Browse files
committed
Updated encoding
1 parent 8033384 commit 3719726

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

windows/RNFetchBlob/RNFetchBlob.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1578,11 +1578,12 @@ try
15781578
break;
15791579
}
15801580

1581+
readContents = winrt::to_string(CryptographicBuffer::EncodeToBase64String(readBuffer));
1582+
15811583
if (config.fileCache) {
15821584
co_await outputStream.WriteAsync(readBuffer);
15831585
}
15841586
else {
1585-
readContents = winrt::to_string(CryptographicBuffer::ConvertBinaryToString(BinaryStringEncoding::Utf8, readBuffer));
15861587
resultOutput << readContents;
15871588
}
15881589

0 commit comments

Comments
 (0)