I've got this same challenge.  The contents of any file within a zip needs
to be read as a stream, hence why there is no underlying seek method
available (assuming to handle the decompression properly) So if you want to
seek in a file within a zip, you need to read into a buffer first.  You
don't have to load the whole zip, just the file within the zip you're
working on.

On Wed, Sep 21, 2022, 9:15 PM robert engels <reng...@ix.netcom.com> wrote:

> Yea - my bad. Should be fine.
>
> > On Sep 21, 2022, at 7:56 PM, 'Dan Kortschak' via golang-nuts <
> golang-nuts@googlegroups.com> wrote:
> >
> > On Wed, 2022-09-21 at 19:30 -0500, robert engels wrote:
> >> Others have suggested passing a ByteBuffer - I don’t think that will
> >> work because you will be missing other methods that are probably
> >> needed (FileInfo to get the name, etc)
> >
> > The function that was pointed to takes an ~io.ReadSeeker (oddly a
> > pointer to the interface) and doesn't look like it expects to
> > conditionally use other methods. The other details can always be
> > obtained from the original value.
> >
> > --
> > You received this message because you are subscribed to the Google
> Groups "golang-nuts" group.
> > To unsubscribe from this group and stop receiving emails from it, send
> an email to golang-nuts+unsubscr...@googlegroups.com.
> > To view this discussion on the web visit
> https://groups.google.com/d/msgid/golang-nuts/f6d47a3fe5ae4425b51f978d8a5cda71aaa55cf3.camel%40kortschak.io
> .
>
> --
> You received this message because you are subscribed to the Google Groups
> "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to golang-nuts+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/golang-nuts/C1DC1898-987D-484D-9EB9-268D6E402327%40ix.netcom.com
> .
>

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/golang-nuts/CAD53Lr79XaEZ47UKn-oy6OXywf1iTXdbQkPGKhxu6-d5TjpTvA%40mail.gmail.com.

Reply via email to