BizTalk Compressing / Decompressing Pipeline components

January 16, 2006 / Comments Off on BizTalk Compressing / Decompressing Pipeline components

The new BizTalk 2006 samples are really GREAT.

There is lots of stuff in it really worth a look. One of the things i have been needing for a while was a Streaming ZIP component.
And I know with the components available out there it was possible to compress a stream. But it was not really possible to do that in a streaming fashion.

But not anymore, Visual studio 2005 has it’s own compression classes (I gues this is new) and one of them happens to be a CompressionStream. You can use this with ease in a pipeline component, to pass on the stream (but now compressed)

Could be really usefull in some situations…..

The sample is located at : C:Program FilesMicrosoft BizTalk Server 2006SDKScenariosPM in your BizTalk installation.

    using System.IO.Compression;
    using System.Collections.Generic;

    /// <summary>
    /// Implements a wrapper for System.IO.Stream class. In BizTalk server we always read from
    /// streams. GZipStream compresses data while writing. So we have encapsulated the incoming
    /// stream and GZipStream in our stream implmentation. We are providing compression while stream
    /// is being read.
    /// </summary>
    /// <remarks>
    /// CompressionStream derives from System.IO.Stream class to
    /// enable streaming processing of messages while compressing.
    /// </remarks>
    internal class CompressionStream : System.IO.Stream
        private Boolean _bStarted; //finished reading incoming stream
        private Stream _incomingStm; //Incoming stream that needs to be compressed
        private GZipStream _compressStm; //stream to compress data

How many lines of code is that ?

Well found it somewhere (don’t know where) but just wanted to keep the numbers it in case people refer to BizTalk as just another xml processor…

  1. Visual Studio 2005: 7.5 million lines
  2. SQL Server 2005: 3 million lines
  3. BizTalk Server: 2 million lines
  4. Visual Studio Team System: 1.7 million lines
  5. Windows Presentation Foundation: 900K lines
  6. Windows Sharepoint Services: 750K lines
  7. Expression Interactive Designer: 250K lines
  8. Sharepoint Portal Server: 200K lines
  9. Content Management Server: 100K lines

Ahhhh dont jou just love that…………

January 7, 2006 / Comments Off on Ahhhh dont jou just love that…………

Sometimes you have a kind of gut feeling about something…..

And this time I found the right thing to justify what I have always been thinking…..

Have a look at this hyperlink

And tell me how long the list of vulnerabillities is of the Linux/Firefox stuff compared to the list of MS.
For sure you could make the list of vulnerabillities of a MS Windows system much longer….

Just install apache and Firefox on it !




  • Recent Posts
  • Recent Comments
  • Archives
  • Categories
  • Meta