BizTalk Server General - Receiving file size with file adapter!

This is Interesting: Free IT Magazines  
Home > Archive > BizTalk Server General > January 2006 > Receiving file size with file adapter!





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Receiving file size with file adapter!
Mahesh

2006-01-16, 2:48 am

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.

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.
>
>

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com