none
can i send 3 to 5 gb file using wcf ... over http ? RRS feed

  • Question

  • hi...

    i can send upto 1.5 gb using streaming with wcf ....

    i still want to upload bigger file...

    how ?

    Wednesday, September 25, 2013 8:54 AM

Answers

  • Hi,

    Yes, we can send 3 to 5 gb file using wcf, but because IIS cannot transfer more than 2GB of data. Then you’ll need to use the self host to get around this if you need to send more data than that. So in your case, you should use the Self Host to help you.

    Web.config-server

    <basicHttpBinding>
    
        <binding name="FileSenderService.StreamedBinding"
    
                     transferMode="StreamedRequest" maxBufferSize="65536"
    
                     maxReceivedMessageSize="2000000000" messageEncoding="Mtom"
    
                     receiveTimeout="00:10:00">
    
        </binding>
    
    </basicHttpBinding>
    
     

    App.config – client

    <basicHttpBinding>
    
        <binding name="BasicHttpBinding_IFileTransfer" sendTimeout="00:10:00"
    
                 messageEncoding="Mtom" transferMode="StreamedRequest" />
    
    </basicHttpBinding>

    For more information, please try to refer to:

    #
    Transferring large files using WCF:
    http://garfoot.com/blog/2008/06/transferring-large-files-using-wcf/ .

    Best Regards,
    Amy Peng


    <THE CONTENT IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND, WHETHER EXPRESS OR IMPLIED>
    Thanks
    MSDN Community Support

    Please remember to "Mark as Answer" the responses that resolved your issue. It is a common way to recognize those who have helped you, and makes it easier for other visitors to find the resolution later.


    Thursday, September 26, 2013 2:23 AM
    Moderator