Does ServiceStack support binary responses?
问题 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: 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