Link to home
Start Free TrialLog in
Avatar of fmichail
fmichailFlag for Canada

asked on

How to compress files (images) using windows compression (NOT WNZIP) from VB6. It is OK to use vb.net

I am working in VB6, and I need to compress image files using windows compression. I am OK with writing a vb.net code, but then I need to know how to call it from VB6. Please provide the code for compression and decmpression. Thanks for the help.
Avatar of aikimark
aikimark
Flag of United States of America image

Would a .zip or .7z format file be acceptable?  I'm not really sure of your criteria.
Avatar of fmichail

ASKER

Hi aikimark

a zip format is perfectly OK, as long as i do not use the winzip to create it. only .net code in an assemblythat I can register and access in VB6. Thanjs
You can probably do this from your VB6 application without having to use the .Net framework.

Additional question...Do you need to compress these files in a batch/bulk/block operation or on a file-by-file basis?
aikimark

I need to be ableto compress one or more files every run (I beleive thisis what you mean by batch/bulk/block operation. Thanks
SOLUTION
Avatar of aikimark
aikimark
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
what are the characters PK &  Chr(5) & Chr(6) & String(18, Chr(0))
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Solution is excellent, I wish if there is a higher grade to give. Thanks you guys.