We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent de04261 commit 61f7188Copy full SHA for 61f7188
harmony/blobUtil/src/main/ets/ReactNativeBlobUtil/ReactNativeBlobUtilFS.ts
@@ -147,8 +147,7 @@ export default class ReactNativeBlobUtilFS {
147
return new Promise((resolve,reject) => {
148
try {
149
let file = fs.openSync(path, fs.OpenMode.READ_WRITE | fs.OpenMode.CREATE);
150
- let encod =buffer.transcode(buffer.from(data), 'utf-8', 'ascii')
151
- let writeLen = fs.writeSync(file.fd,encod.buffer);
+ let writeLen = fs.writeSync(file.fd,data);
152
if(writeLen==-1){
153
console.log("write data to file succeed and size is:" + writeLen)
154
}else{
0 commit comments