Looks good to me.  Something like this might be slightly cleaner:

```julia
if header["encoding"] == "raw" && prod(sz) > 10^8
    ...
elseif header["encoding"] == "raw" || header["encoding"] == "gzip"]
    ...
else
    error("\"", header["encoding"], "\" encoding not supported.")
end