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

  • Home
  • SEARCH
  • 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 832535
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T04:22:37+00:00 2026-05-15T04:22:37+00:00

When using the Stream.BeginRead Method, and you are reading from a stream into a

  • 0

When using the Stream.BeginRead Method, and you are reading from a stream into a memory, how is it determined where you are reading the data from?

See:
http://msdn.microsoft.com/en-us/library/system.io.stream.beginread.aspx

In the list of parameters, I do not see one that tells where the data is being read from:

Parameters

  • buffer Type: System.Byte[] The buffer to read the data into.
  • offset Type: System.Int32 The byte offset in buffer at which to begin writing data read from the stream
  • count Type: System.Int32 The maximum number of bytes to read.
  • callback Type: System.AsyncCallback An optional asynchronous callback, to be called when the read is complete.
  • state Type: System.Object A user-provided object that distinguishes this particular asynchronous read request from other
    requests.
  • 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-15T04:22:38+00:00Added an answer on May 15, 2026 at 4:22 am

    It reads the data from wherever the stream is up to, as determined by the Position property.

    Note that not all streams support seeking, so you cannot necessarily set Position.

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

Sidebar

Related Questions

This code comes from: http://code.activestate.com/recipes/577090-file-encryption-using-stream-cipher/ import sys import random if len(sys.argv) != 4: print
I am reading a large data stream using lazy bytestrings, and want to know
I've got a Stream object and I am using BeginRead to begin reading (obviously)
I've an open TCP connection, and reading using NetworkStream.BeginRead(). Once the connection is closed
I'm retrieving image from DB using Stream. Need someone to help me to convert
I've gotten as far as putting a file into a stream from a url.
I'm using NetworkStream.BeginRead to read asynchronously from a Socket . But it is much
I have a Php application using stream_socket_client(), to get data through tcp from a
I have very similar code when using the standard BeginRead and EndRead methods from
If I have this method: public StreamReader GetResourceStream(string filename) { using (Stream stream =

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.