Comments (4)
rlightner wrote on Jan 22 at 10:02 AM:
so if I add that content-type to the mimeTypes entry in the web.config it supports it.
Would it make more sense for the WebFormatterFactory.CreateFormatter to do some parsing on the ; or leave it to the developer to update the mimeTypes accordingly?
from wcfrestcontrib.
I just hit a similar problem with
Content-Type: multipart/form-data; boundary=<long_random_string>
In this case the content type varies with every request, so adding it to the config is not an option. So I vote for CreateFormatter regarding everything up to the first semicolon as the content type.
from wcfrestcontrib.
Thats actually pretty easy to fix. I've been pretty disconnected from this project lately so I'll but I'll try to get this fixed right away.
from wcfrestcontrib.
Wow - that is a quick response, many thanks. At the risk of stretching your patience I'll mention that the other problem I'm hitting with sending multipart data is that anything over 16Kb in size provokes:
Error: The maximum array length quota (16384) has been exceeded while reading XML data. This quota may be increased by changing the MaxArrayLength property on the XmlDictionaryReaderQuotas object used when creating the XML reader.
Stack trace:
at System.Xml.XmlExceptionHelper.ThrowXmlException(XmlDictionaryReader reader, String res, String arg1, String arg2, String arg3)
at System.Xml.XmlDictionaryReader.ReadContentAsBytes(Boolean base64, Int32 maxByteArrayContentLength)
at System.Xml.XmlDictionaryReader.ReadContentAsBase64(Int32 maxByteArrayContentLength, Int32 maxInitialCount)
at WcfRestContrib.ServiceModel.Channels.BinaryBodyReader..ctor(XmlDictionaryReader reader) in D:\Dev\Personal\Components\WcfRestContrib\WcfRestContrib\ServiceModel\Channels\BinaryBodyReader.cs:line 26...
Is there any workaround for that issue?
from wcfrestcontrib.
Related Issues (13)
- Can't change formatter for WCF-handled content types (HakanL)
- nu install doesn't work (Forbidden 403) HOT 3
- OperationContext.Current.ServiceSecurityContext.PrimaryIdentity.Name
- Exception when deserializing JSON objects HOT 1
- XML exception reading message body in .NET 4.5 HOT 3
- POX Reader can't handle base64 binary (HakanL) HOT 7
- Support Digest authentication (HakanL) HOT 1
- Allow the return of non 401 with Basic Authentication fails (rlightner)
- Allow non-"formatted" friendly message for WebException (mtc900)
- WebDispatchFormatter.ConfigurationBehaviorElement should support IEndpointBehavior (shaunco) HOT 1
- WebDispatchFormatter should have an option to not throw ConfigurationException (shaunco) HOT 1
- ServiceConfigurationAttribute should merge settings (shaunco) HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wcfrestcontrib.