Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 503823
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T06:26:01+00:00 2026-05-13T06:26:01+00:00

I am looking into using WCF for a project which would require the ability

  • 0

I am looking into using WCF for a project which would require the ability for people to upload large files (64MB-1GB) to my server. How would I handle this with WCF, possibly with the ability to resume uploads.

In order to handle a larger client base, I wanted to test out JSON via WCF. How would this affect the file upload? Can it be done from JSON, or would they need to switch to REST for the upload portion?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-13T06:26:01+00:00Added an answer on May 13, 2026 at 6:26 am

    If you want to upload large files, you’ll definitely need to look into WCF Streaming Mode.

    Basically, you can change the transfer mode on your binding; by default, it’s buffered, i.e. the whole message needs to be buffered on the sender, serialized, and then transmitted as a whole.

    With Streaming, you can define either one-way streaming (for uploads only, for downloads only) or bidirectional streaming. This is done by setting the transferMode of your binding to StreamedRequest, StreamedResponse, or just plain Streamed.

    <bindings>
       <basicHttpBinding>
          <binding name="HttpStreaming" 
                   maxReceivedMessageSize="2000000"
                   transferMode="StreamedRequest"/>
       </basicHttpBinding>
    </bindings>
    

    Then you need to have a service contract which either receives a parameter of type Stream (for uploads), or returns a value of type Stream (for downloads).

    [ServiceContract]
    public interface IFileUpload
    {
        [OperationContract]
        bool UploadFile(Stream stream);
    }
    

    That should do it!

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am looking into WCF specifically in relation to Silverlight. Can someone tell me
I am looking into using the new Backup API that available since Android 2.2,
So, I've started looking into using AspectJ to handle processing events when the state
I have some questions about the usage of the close() method when using Java
After many hours of googling I thought I would see if anyone knew the
I have what seems to be a fairly common inter-process communication requirement - a
I am a .Net developer, I focus mainly on the system logic rather than
I have an application that consists of three parts: a front-end web shop for
I'm attempting to test a [MessageContract] class against an existing sample message, and I'm
So assume you have two clients, C1 and C2, each client has a GUID

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.