aces / brainbrowser

Web-based visualization tools for neurological data.
https://brainbrowser.cbrain.mcgill.ca/
GNU Affero General Public License v3.0
351 stars 122 forks source link

Add support for gzipped files to loadFromURL #363

Open driusan opened 2 years ago

driusan commented 2 years ago

Loading a nii.gz from disk works, however the loadFromURL path goes through a different code path which only supports uncompressed files. This adds support for loading nii.gz files with nii_url as well as nii_file without having to decompress and stream the file server side using a similar try/catch block to that done in loadFromFile.