You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
is it somehow possible to load a URL to a zip file with multiple dcm files directly? I found a ZipLoader in your code, however there is no example how to use it. If passing the URL is not possible, is it possible to load the zip file via the File Api? So downloading the zip file and creating the File variable to load this file then?
As dwv seems not to support the result of zip.files, as it is an object and not an array, I first put all objects into a new array. However this also does not work. I get this error:
TypeError: Failed to execute 'readAsArrayBuffer' on 'FileReader': parameter 1 is not of type 'Blob'.
Any ideas?
Best regards,
Martin
The text was updated successfully, but these errors were encountered:
Hi Martin, loading zip files is supported via url or as a file. As an url, you just need to add the file path to an input as in: http://127.0.0.1:8080/viewers/mobile/index.html?input=/fileWithDicoms.zip
thanks a lot for the answers. I tried it the way you described it, however in Chrome the page simply crashes with the message, that there was an error showing this page. The reason I wanted to have one zip is to reduce the number of HTTP requests. As the zip files containing the dcm files are about 100 mb large, they probably are too large for JSZip you use internally. Unfortunately the console does not show any error. Additionally, the browser does not matter here.
Hi,
is it somehow possible to load a URL to a zip file with multiple dcm files directly? I found a ZipLoader in your code, however there is no example how to use it. If passing the URL is not possible, is it possible to load the zip file via the File Api? So downloading the zip file and creating the File variable to load this file then?
Thanks a lot!
EDIT:
I just tried it like this:
However I only get this error in an alert box:
As I can unzip the file regularly with JSZip, I do not know, why this happens. Trying to unpack the zip file first looks like this:
As dwv seems not to support the result of zip.files, as it is an object and not an array, I first put all objects into a new array. However this also does not work. I get this error:
Any ideas?
Best regards,
Martin
The text was updated successfully, but these errors were encountered: