Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6051699
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T07:50:49+00:00 2026-05-23T07:50:49+00:00

I am working with a multipart MIME message parser, using the SharpMimeTools library. The

  • 0

I am working with a multipart MIME message parser, using the SharpMimeTools library.

The MIME library is expecting to receive a stream, which it is getting from Request.InputStream.

However, it expects the stream to contain header information which is not in the Request.InputStream.

For testing, I wrote Request.InputStream to a text file, wrote Request.Headers to a string. I opened the text file, pasted in the headers and everything works as expected.

How can I add my header string to the beginning of my stream?

Is it possible to do this? To take a string and add it to the beginning of a stream.

If this is not a desired way to do it, is there a way to get the InputStream with the headers already appended?

Thanks!

Edit: This was the what I was using as a reference: http://blog.rueedlinger.ch/2009/01/net-c-and-soap-with-attachments/

Since he omitted the constructors @ the beginning, I wasn’t sure where the source of the stream was. Turns out httpStream was my Request.Input stream and mimeStream was simply a new MemoryStream.

The actual binary append was done using a TextReader and TextWriter.

Consider this solved. The last iteration was it…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T07:50:49+00:00Added an answer on May 23, 2026 at 7:50 am

    I’d posted the answer to this question in my original question.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Working with an Oracle 9i database from an ASP.NET 2.0 (VB) application using OLEDB.
I've been working on getting an image to upload from my iOS app to
I am working on an application which connects to the mail server using python
I'm working on an iPhone app that makes a multipart HTTP request with multiple
I have a multipart downloader, and to get it working I'm using this app.config
Working with python interactively, it's sometimes necessary to display a result which is some
Working in Eclipse on a Dynamic Web Project (using Tomcat (v5.5) as the app
I am working on a project using JavaMail. I want to access my Gmail
I'm working on a project that involves uploading an image to tumblr from Python.
For some reason using the CarrierWave gem with Ajax doesn't seem to be working

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.