Sending big files by WCF Service to ASP.NET or WinForms application
description
For example, send big file (more than 500MB like PDF file, or big JPG files) by WCF Service to a ASPNET application and too for WinForms application.
Have this architecture:
WebSite ASP.NET <------> WCF Service <--------> DataBase
or
WinForms application <------> WCF Service <--------> DataBase
DAtabase gathering very big files.
User request a big file in aspx page, through WCF Service. Service call database, and get the big file.
Now, my entity (datacontract) has those fields:
string Data1
string Data2
string Data3
byte[] FileBigger
How to send big file throught WCF Service to Website ?
How to send big file throught WCF Service to winForms ?
which best practices for do it ?
Very good sample is required.