Search code examples
vbscriptasp-classiczipebay-api

gzip/zip in Classic ASP / VB Script for eBay API


I'm using "eBay API > File Transfer > uploadFile".

The file I use (I'm hoping to use CSV) needs to be both zipped and base64 encoded.

I have found a script online to encode to base64, but now I need to sort out the zip.

gzip or zip are the formats.

Can anyone suggest a script or library (Classic ASP with VB Script) to allow me to zip my file up ready for upload to eBay..??

Cheers!


Solution

  • For base64-encoding a string see this answer. For gzip compression you could try this component (never used it myself, though) or shell out to a gzip executable:

    Set sh = CreateObject("WScript.Shell")
    sh.Run "C:\path\to\gzip.exe filename"
    

    gzip for Windows can be found here.