How to parse the multipart data in a restful service...

Posted by AXS on Stack Overflow See other posts from Stack Overflow or by AXS
Published on 2010-03-30T14:48:03Z Indexed on 2010/12/26 0:54 UTC
Read the original article Hit count: 165

Filed under:
|
|
|
|

I have written a restful web service in c# and .net using the Restful Starter Kit that receives a mime multipart form via a stream.

The multipart form contains a small xml fragment and a small file binary.

I have read the stream in, and I have also written some code to parse the data to obtain the XML and the file binary.

However, I feel that there should be some methods already written in the .net classes to allow me to access the two parts of the multipart form without having to parse the data myself.

Does anyone have any ideas on how to do this?

© Stack Overflow or respective owner

Related posts about c#

Related posts about .NET