Avatar of Dustin Stanley
Dustin Stanley
 asked on

Please Explain What Reading a Zip file Back In Means

I am in the process of a project and I have came to a stump. I am making a XML with an attachment and I have to "Read Back the gZip file"????

what does that mean exactly. I have no experience in XML attachments or with zip files. Just zip it up to save space. I am using MS Access and I am sending this to an API.

Please extremely dumb it down for me. Thanks.
XMLMicrosoft Access

Avatar of undefined
Last Comment
Dustin Stanley

8/22/2022 - Mon
Jackie Man

Have you tried to use the gzip utility to compress the files?

http://www.gzip.org
SOLUTION
ste5an

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Dustin Stanley

ASKER
Jackie
I am using Windows 7 and I have used 7zip in gzip format. It appears there is no user interface for Windows gZip.


Ste5an
This is used for transportation. Are you saying I gZip the file and then gZip the file again... So it is a gzip within a gZip?

or I gZip it send it and then when the server replies it will also be in gZip format. Which I have to decompress to read?

Thanks for the help. Sometimes I don't get the simplest things.
Jackie Man

Your OS is Windows 10?
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
ste5an

I guessed based on the keyword API - you have not given any further clue on that - that you need to gzip the payload before sending it and decompress any payload you receive.
The entire rest (pun intended) depends on your concrete API. Thus RTFM.
Dustin Stanley

ASKER
Jackie Man
Windows 7

ste5an
you have not given any further clue on that

The API is for ebay Large Merchant Services (LMS). The calls name is "uploadFile". This is an XML file and the specs can be found here:
https://developer.ebay.com/DevZone/file-transfer/CallRef/uploadFile.html

I also have a another API call named "AddFixedPricedItem". This is also an XML file.

So from my understanding I have to gzip the "AddFixedPricedItem"  XML file into the "uploadFile" XML file under the element <fileAttachment>.


So this is where the question here begins. I was told I had to "Read the GZIP file back in."??????

Thanks for the help!
SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
Dustin Stanley

ASKER
Thank you for the info. I have to leave work soon so I will be back in the morning to try that out. I hope it works for me as this is a big pain. I have been working all week on it. Thanks.

Also did you look over that link? If so am I correct as of what they are asking for? Thanks.
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
Dustin Stanley

ASKER
I used the code and thank you. So when someone says "Read the zip file back in." That means to encode it into Binary????  Zipped Binary file is a "Read In Data File"?????

Thanks.
ASKER CERTIFIED SOLUTION
Log in to continue reading
Log In
Sign up - Free for 7 days
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
Dustin Stanley

ASKER
Thank you for the help!