Skip to content

Demo how to load or read a large ZIP file and to list the embedded folders in a browser

Notifications You must be signed in to change notification settings

mbarnig/dumpZIPwithDICOMfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dumpZIPwithDICOMfiles logo

The present apps dump the folders embedded in a ZIP file in a browser web page. Public demos are available at my website :

loadZIP

Informations about the DICOM standard are available in my GitHub repository dumpDICOMDIRarchive.

The loadZIP app uses a XMLHttpRequest to download the remote file. For security reasons, browsers restrict such downloads if the requested source is hosted in another domain. This demo server, hosted on Amazon Web Services (AWS), uses the Cross Origin Resource Sharing (CORS) protocol to allow cross-origin requests.

The great JSZIP library, developed by Stuart Knightley and David Duponchel, is used to extract the content of ZIP archives. The related javascript file jszip.min.js is not included in this project, please download it from the JSZIP GitHub.

The present repository is related to the medical project RadioLogic. The demos and the related documentation have been created for my own needs. The files have been validated with the W3C Markup Validation Service and with JSHint, a Javascript Code Quality Tool. The code has been tested with the following browsers :

  • Safari 10
  • iOS 10.3.1
  • Firefox 54
  • Chrome 60
  • IE 11
  • Edge 38
  • Android 6.0

I think the code may be of interest to other developers.
If you find it useful, you are welcome.

Links :

https://github.com/victornpb/jszip-utils
http://jsfiddle.net/dvLtdsr8/3/
https://stackoverflow.com/questions/43721964/wrapping-js-promisies-into-a-function
https://pusher.com/sessions/meetup/viennajs/zipping-files-fun

About

Demo how to load or read a large ZIP file and to list the embedded folders in a browser

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published