Receiving file size with file adapter!
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > BizTalk Server > BizTalk Server General > Receiving file size with file adapter!




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Receiving file size with file adapter!  
Mahesh


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-16-06 07: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.






[ Post a follow-up to this message ]



    RE: Receiving file size with file adapter!  
Selvan


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
01-16-06 12:49 PM

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





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 05:19 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register