# JuliaDB - Support for reading GZ file extension

**URL:** <https://discourse.julialang.org/t/juliadb-support-for-reading-gz-file-extension/3654>\
**Category:** Data\
**Created:** [May 11, 2017, 6:20pm UTC](https://discourse.julialang.org/t/juliadb-support-for-reading-gz-file-extension/3654 "2017-05-11T18:20:32Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![hpoit](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/hpoit/32/245_2.png) [@hpoit](https://discourse.julialang.org/u/hpoit)\
**Post date:** [May 11, 2017, 6:20pm UTC](https://discourse.julialang.org/t/juliadb-support-for-reading-gz-file-extension/3654/1 "2017-05-11T18:20:32Z")

</div>

@shashi, does `_csvread` from TextParse parsing abstract strings pose a problem for I/O streams?

I’m not sure if we should be discussing this here instead of on the Github issues I created, but since you brought it here I figured it’s alright.

@js135005 I am only worried about the GZ file extension at the moment.

---

<div class="post-metadata">

**Author:** ![hpoit](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/hpoit/32/245_2.png) [@hpoit](https://discourse.julialang.org/u/hpoit)\
**Post date:** [May 11, 2017, 11:04pm UTC](https://discourse.julialang.org/t/juliadb-support-for-reading-gz-file-extension/3654/2 "2017-05-11T23:04:55Z")

</div>

Hi @shashi and @sdanisch, I’m winging the registration process on FileIO

```julia
gzip_magic = (0x1f8b)

function detectgzip(io)
    position(io) == 0 || return false
    seekend(io)
    len = position(io)
    seekstart(io)
    magic = Vector{UInt8}(length(gzip_magic))
    pos = position(io)
    read!(io, magic)
end

add_format(format"GZIP", [0x1f8b], ".gz")

```

I need to check if GZIP requires certain packages for I/O support.

I’ll build on this post before I actually make the PR, if you don’t mind.
