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 3397572
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T04:32:42+00:00 2026-05-18T04:32:42+00:00

What exactly is it, or was it, as is a interop, used for? Here,

  • 0

What exactly is it, or was it, as is a interop, used for?

Here, this is the method where I use it:

    public void SaveAttachmentMime(String fileName, CDO.Message message)
    {
        ADODB.Stream stream = message.BodyPart.GetStream();

        String messageString = stream.ReadText(stream.Size);

        StreamWriter outputStream = new StreamWriter(fileName);

        outputStream.Write(messageString);
        outputStream.Flush();
        outputStream.Close();
    }
  • 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-18T04:32:42+00:00Added an answer on May 18, 2026 at 4:32 am

    The ADODB.Stream object was used to read files and other streams. What it does is part of what the StreamReader, StreamWriter, FileStream and Stream does in the .NET framework.

    For what the code in that method uses it for, in .NET you would use a StreamReader to read from a Stream.

    Note that the code in the method only works properly if the stream contains non-Unicode data, as it uses the size in bytes to determine how many characters to read. With a Unicode encoding some characters may be encoded as several bytes, so the stream would run into the end of the stream before it could read the number of characters specified.

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

Sidebar

Related Questions

Exactly how LINQ's where method is defined? I'm guessing implementation is something like this:
What exactly is Reflection? I read the Wikipedia article on this subject and I
Not exactly about programming, but I need help with this. I'm running a development
exactly what does NUnit do when it encounters a timeout? I used to think
Exactly as per the title. Simply in my HomeController I have: string Username =
Exactly What would this mean: Car is an interface Audi is a class Car
What exactly does this mean -- Maybe IRB bug!? What does that tell me
What exactly does the VS project option Register for COM interop actually do? Because
Exactly as the question sounds. If there isn't a generic way to answer this
Exactly like this question , except that one got closed and accepted without a

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.