文件上传失败检测
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
parent
64a0e68448
commit
bb6bf409b7
|
@ -55,10 +55,15 @@ export const anonymization = function (file, config) {
|
|||
}
|
||||
}
|
||||
// console.log(dataset)
|
||||
try {
|
||||
let newDicomFile = dataset.write()
|
||||
const bufferArray = new Uint8Array(newDicomFile)
|
||||
const blob = new Blob([bufferArray], { type: 'application/octet-stream' })
|
||||
resolve({ blob, pixelDataElement })
|
||||
} catch (err) {
|
||||
console.log(err)
|
||||
resolve(false);
|
||||
}
|
||||
};
|
||||
reader.readAsArrayBuffer(file);
|
||||
} catch (e) {
|
||||
|
|
Loading…
Reference in New Issue