cornerstonejs / cornerstone

JavaScript library to display interactive medical images including but not limited to DICOM
https://docs.cornerstonejs.org/
MIT License
2.04k stars 596 forks source link

Load local file by using fs.readFile, the buffer type result cannot be use #590

Open alex644715 opened 2 years ago

alex644715 commented 2 years ago

Hi, my program has 2 pages. The first one has a input element to load multiple dicom files in local directory. Then all of the files' path were save in server. The second page will load the local file by using fs.readFile. However, the result of the fs.readFile is buffer type, not a file. It cannot be use by cornerstone.loadImage. How can I solve this issue.

Thx