We help IT Professionals succeed at work.

Please Explain What Reading a Zip file Back In Means

Dustin Stanley
on
181 Views
Last Modified: 2017-04-07
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.
Comment
Watch Question

CERTIFIED EXPERT
Distinguished Expert 2019

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

http://www.gzip.org
ste5anSenior Developer
CERTIFIED EXPERT
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION
Dustin StanleyEntrepreneur

Author

Commented:
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.
CERTIFIED EXPERT
Distinguished Expert 2019

Commented:
Your OS is Windows 10?
ste5anSenior Developer
CERTIFIED EXPERT

Commented:
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 StanleyEntrepreneur

Author

Commented:
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!
ste5anSenior Developer
CERTIFIED EXPERT
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION
Dustin StanleyEntrepreneur

Author

Commented:
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.
Dustin StanleyEntrepreneur

Author

Commented:
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.
Senior Developer
CERTIFIED EXPERT
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION
Dustin StanleyEntrepreneur

Author

Commented:
Thank you for the help!

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions