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 6015633
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T02:51:50+00:00 2026-05-23T02:51:50+00:00

Is there any mechanism in ServiceStack services to return streaming/large binary data? WCF’s MTOM

  • 0

Is there any mechanism in ServiceStack services to return streaming/large binary data? WCF’s MTOM support is awkward but effective in returning large amounts of data without text conversion overhead.

  • 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-23T02:51:51+00:00Added an answer on May 23, 2026 at 2:51 am

    From a birds-eye view ServiceStack can return any of:

    • Any DTO object -> serialized to Response ContentType
    • HttpResult, HttpError, CompressedResult (IHttpResult) for Customized HTTP response

    The following types are not converted and get written directly to the Response Stream:

    • String
    • Stream
    • IStreamWriter
    • byte[] – with the application/octet-stream Content Type.

    Details

    In addition to returning plain C# objects, ServiceStack allows you to return any Stream or IStreamWriter (which is a bit more flexible on how you write to the response stream):

    public interface IStreamWriter
    {
        void WriteTo(Stream stream);
    }
    

    Both though allow you to write directly to the Response OutputStream without any additional conversion overhead.

    If you want to customize the HTTP headers at the sametime you just need to implement IHasOptions where any Dictionary Entry is written to the Response HttpHeaders.

    public interface IHasOptions
    {
        IDictionary<string, string> Options { get; }
    }
    

    Further than that, the IHttpResult allows even finer-grain control of the HTTP output where you can supply a custom Http Response status code. You can refer to the implementation of the HttpResult object for a real-world implementation of these above interfaces.

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

Sidebar

Related Questions

Is there any mechanism in Hudson/Jenkns which automatically invokes the slave machine which ever
Is there any graph or mechanism to test the performance of an android app?
Does JPA 2 have any mechanism for running recursive queries? Here's my situation: I
There is one IP (from China) which is trying to download my entire website.
Can some one explain (or quote a reference) to compare the scoring mechanism used
As far as I can tell, the moment I switch any of my projects
There is an open source desktop program which is written in Java (Swing) and
I am trying to concatenate and display string and number together in a table
I have a problem with entity versioning. Here's what I want to archive: Let's
I can write a function this way in Objective-C. This can be used to

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.