BizTalk 2004 custom adapter: what is the message size
I made a copy of the message and then measured the copies length, that
sorted out the end of stream problem.
The simplification also worked well.
The issue that I cant figure out is how to let it grow to accomodate much
bigger file sizes, without setting a ridicilous buffer. I guess I answered
my own question writing that, I guess it might need to be a context property
in the pipeline, that way its not in the adapter at all, its just a
paramater that gets attached to the message.
That would require a pipeline component that measures the message before
giving it over to the adapter.
Do you, or anyone know another place in BizTalk that the message size in
byte[] can be retrieved within BizTalk with less work?
|