Added support for receiving JSON-LD files compressed with Gzip #63
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
When I tried hosting JPhyloRef on my own server, I ran into extremely long upload times when uploading Brochu 2003 JSON-LD file (which is around 22mb in size) to JPhyloRef (~7 mins from Colorado to NYC). I managed to reduce this tremendously (to ~2 seconds) by allowing clients to upload JSON-LD files that had been compressed with gzip and then converted into a string as base64. This PR adds support for this on JPhyloRef's webserver: if a string is provided in the
jsonldGzipped
form field, it is converted from base64 into binary data and then uncompressed into a UTF-8 string for processing.This should be merged after #62 has been merged.