Giter Club home page Giter Club logo

Comments (4)

mikeobrien avatar mikeobrien commented on July 22, 2024

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.

NickNorth avatar NickNorth commented on July 22, 2024

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.

mikeobrien avatar mikeobrien commented on July 22, 2024

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.

NickNorth avatar NickNorth commented on July 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.