Search the web for a Base64 encoder. This will convert the binary file to
text. XML provides a mechanism by which this data can be stored in a CDATA
When you have received the document on the other side, simply run a Base64
Decoder to rebuild it. Think of it like the Star Trek transporter.
The content-type (MIME type) for a zip file is
"application/x-zip-compressed". You'll probably want to store this as an
attribute so your receiver can know what to do with it.
This is the same process that Internet Email programs use to perform the
same task since email messages can only be in text.
There are some drawbacks, though. The size of the Base64 encoded file is
significantly larger than the original since all non-printable characters
that represent the binary data must be converted to one of 64 printable
characters. I'm not sure the exact size difference but I'm guessing that
it's about 3 times bigger than the original.
Good luck. Let me know if you have any questions.
From: 11206 Mueller Mirco [mailto:mirco.mueller@i...]
Sent: Tuesday, April 03, 2001 4:02 AM
Subject: [biztalk] Re: Transfering Zip Files in BizTalk Server
The problem is not the zip-file. The problem is to transfer binary data.
Using the winsock
is a simple way to do this. I have done this and it worked very well, but
not with the port 80, because
the webserver was listening on this port. configure your webserver to listen
on an other port or make
a port free on your firewall or something else.
Also think about safileup from SoftArtisans, this company has good
solutions to solve such problems.
Once more, biztalk can handle every type of file if you don't need
informations from these files to choose
the way documents go. That's because BizTalk Server put every information
into the XML body of it's own document
definition. So don't worry about the data that's written into it.
I hope this works,
----- Original Message -----
From: "Mallya, Deepak non Unisys" <Deepak.Mallya@u...>
To: "Biztalk" <biztalk@p...>
Sent: Monday, April 02, 2001 10:38 PM
Subject: [biztalk] Transfering Zip Files in BizTalk Server
> Hi All,
> Anyone has ideas on how I could transfer a Zip File from one Biztalk
> to another.
> No FTP please, as my client wont open any port, other than port 80.
> I Tried using HTTP as transport address, but could not get the Zipped file
> to store on the server disk.
> with content type "XML", Stream object works as per examples in tutorial.
> But how do I go about transferring Zipped files? Winsock, WinInet..What?