Zip Format?

Andre Garzia andre at andregarzia.com
Tue Oct 16 14:17:30 EDT 2007


Mark,

put the content of the file into a variable and then compress it.

like:

put url ("binfile:" & PathToFile) into myVar
put compress(myVar) into myCompressedVar
put myCompressedVar into URL ("binfile:" & PathToFile & ".gz") -- in case
you want to save the gziped file

andre

On 10/16/07, Dave <dave at looktowindward.com> wrote:
>
> Hi Mark,
>
> I saw that function, but it looks like it only works on a variable,
> not a file. I have a 5 MB file I which I want to compress and send to
> the server, how can I achieve this using the Compress function?
>
> Thanks a Lot
> All the Best
> Dave
>
> On 16 Oct 2007, at 17:47, Mark Schonewille wrote:
>
> > Hi Dave,
> >
> > The compress function creates data in gzip format.
> >
> > Best regards,
> >
> > Mark Schonewille
> >
> >
> > Op 16-okt-2007, om 18:29 heeft David Burgun het volgende geschreven:
> >
> >> Hi,
> >>
> >> I'm using the following function to create a Zip file:
> >>
> > <snip>
> >>
> >>
> >> This file is  then uploaded via FTP to a server using the
> >> "libURLftpUploadFile" function.
> >>
> >> My problem is that the Server is expected a GZip format file. Does
> >> the "revZipAddItemWithFile" function create a GZip file? If not
> >> how can I do this?
> >>
> >> Thanks a lot for any assistance or suggestion.
> >>
> >> All the Best
> >> Dave
> >>
>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>



More information about the use-livecode mailing list