| Selvan 2006-01-16, 7:49 am |
| Mahesh,
You can very well do it. please follow the steps below.
1. Add your design time property "FileSize" in your custom adapter.
2. Calculate the size of the file in "ReceiveEndpoint.cs" from your run
time adapter project and store it in some variable say "intFilesize"
3. Add the following message
message.Context.Write("FileSize", this.propertyNamespace,
(object)intFilesize);
in your CreateMessage function of "ReceiveEndpoint.cs".
Compile and deploy this adapter and make use of this property in the
Orchestration
For additional information please refer the Dotnet File adapter comes with
Biztalk SDK and Stuart Evans blog
http://geekswithblogs.net/sevans/ar...1/14/19985.aspx
There could be another better way to get it done !!.
HTH
Selvan.
"Mahesh" wrote:
> Hi,
> I am trying to determine size of receiving file through file adapter.
> We can get receiving file name with message's property
> ..Message(File.ReceivedFileName).
>
> Do we have any such property to get receiving file size or any other
> technique in Pipeline/Orchstation?
>
> Also we want to calculate file size for send File adapter?
>
> Any help in this regard will be highly appreciated
>
> Thanks.
>
>
|