Hi,
My requirement is to transfer data to a client through WCF services. Data can be of 1MB to 1GB size to be transferred.
So, what can I do, I can pull Data from the database and provided to the client through WCF service.Client can then add it in its local database. How can I manage transferring large data? I want to be able to resume the process if it fails in the middle of the transfer. How can I know if the Client local database has been updated or not.Should I be using a WCF streaming?
Thanks.
Loading
Pranav ThakurPosted Dec 19, 2013, 2:32 AM
Jignesh TrivediPosted Dec 18, 2013, 3:01 AM
hi,
To transfer large amount of data you have to some change in web config and this will enable you WCF to transfer large data.
maxBufferSize="2147483647"
maxReceivedMessageSize="2147483647">
Please refer
http://blogs.msdn.com/b/paolos/archive/2010/05/25/large-message-transfer-with-wcf-adapters-part-1.aspx?Redirected=true
http://dotnetbyloga.blogspot.in/2012/05/large-volume-of-dataset-transfer-from.html
hope this will help you.
Jaganathan BantheswaranPosted Dec 18, 2013, 2:39 AM
The best options to use Streaming.
Streaming is explained here in MSDN.
For "How can I know if the Client local database has been updated or not",
You can use CallbackContracts.