Windows Server - getting the filename of a file inside a ZIp file

Asked By philippe.kozube on 22-Oct-07 01:51 PM
hello,

i will like to know how to get the filename of a file inside a zip....
the  msg(FILE.RECEIVEFILENAME).. gives me the zip  name... and i will
like to have the name of the file inside the zip.

can i acheive that thrue an ORC or i have 2 do it thrue the
Pipeline...

thanks for the quick answer... i need it for production !!!!!!

A+




DouglasMars replied on 23-Oct-07 04:24 PM
There is no "Out of the Box" functionality that would allow you to do this.

It can be accomplished in either an orchestration or in a pipeline component.

You would need to write a utility class around a .NET Zip library, use that
class to examine the zip file and retrieve the filename. You could then
assign the filename to the FILE.RECEIVEDFILENAME context value.

I have used SharpZip http://www.icsharpcode.net/OpenSource/SharpZipLib/ with
success in the past.

Here is a link to the Code Project post around created a Zip Capable
pipeline component.
http://www.codeproject.com/useritems/Biztalk_Custom_Pipeline.asp?msg=2275358

--
My Blog: http://geekswithblogs.net/OverTaxedMind