Parsing multipart response.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Vijay

    #1

    Parsing multipart response.

    Hi,

    In my application i have to parse through a multipart response. In my case
    the first part is a xml portion and second part is byte stream [image]
    portion.

    How can i parse through the various parts in the response and get the values
    in each part.
  • Peter Bromberg [C# MVP]

    #2
    RE: Parsing multipart response.

    Vijay,
    Are we talking about multipart MIME here? If so, you would need some sort of
    MIME Parsing library. If you look around, I am sure you can find one either
    at gotdotnet.com in the user samples, or perhaps at Sourceforge.net
    Peter


    --
    Co-founder, Eggheadcafe.com developer portal:

    UnBlog:





    "Vijay" wrote:
    [color=blue]
    > Hi,
    >
    > In my application i have to parse through a multipart response. In my case
    > the first part is a xml portion and second part is byte stream [image]
    > portion.
    >
    > How can i parse through the various parts in the response and get the values
    > in each part.[/color]

    Comment

    • Nicholas Paldino [.NET/C# MVP]

      #3
      Re: Parsing multipart response.

      Vijay,

      Try looking for "mime" and ".NET" in google, it turns up a good number
      of responses.

      Hope this helps.


      --
      - Nicholas Paldino [.NET/C# MVP]
      - mvp@spam.guard. caspershouse.co m

      "Vijay" <Vijay@discussi ons.microsoft.c om> wrote in message
      news:0C844FFD-0A60-4BFD-8F6F-38D3811D5B81@mi crosoft.com...[color=blue]
      > Hi,
      >
      > In my application i have to parse through a multipart response. In my
      > case
      > the first part is a xml portion and second part is byte stream [image]
      > portion.
      >
      > How can i parse through the various parts in the response and get the
      > values
      > in each part.[/color]


      Comment

      • rossum

        #4
        Re: Parsing multipart response.

        On Mon, 9 Jan 2006 04:21:02 -0800, "Vijay"
        <Vijay@discussi ons.microsoft.c om> wrote:
        [color=blue]
        >Hi,
        >
        >In my application i have to parse through a multipart response. In my case
        >the first part is a xml portion and second part is byte stream [image]
        >portion.
        >
        >How can i parse through the various parts in the response and get the values
        >in each part.[/color]

        At the risk of being *very* obvious this is a two stage process:

        1 Split the response into its separate parts.
        2 Parse each part separately.

        What stage are you having difficulty with?

        rossum

        --

        The ultimate truth is that there is no ultimate truth

        Comment

        Working...