skip navigation
  • Product Bundles

    DevCraft

    All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:

    • MCP Servers
    • Embedded Reporting
    • Document Processing Libraries
    • SSO Account Sign-in

    Web

    Kendo UI UI for Angular UI for Vue UI for jQuery KendoReact UI for Blazor UI for ASP.NET Core UI for ASP.NET MVC UI for ASP.NET AJAX

    Mobile

    UI for .NET MAUI

    Document Management

    Telerik Document Processing

    Desktop

    UI for .NET MAUI UI for WinUI UI for WinForms UI for WPF

    Reporting

    Telerik Reporting Telerik Report Server

    Testing & Mocking

    Test Studio Telerik JustMock

    CMS

    Sitefinity

    AI Productivity Tools

    MCP Servers

    UI/UX Tools

    ThemeBuilder Design System Kit Templates and Building Blocks

    Debugging

    Fiddler Fiddler Everywhere Fiddler Classic Fiddler Everywhere Reporter FiddlerCore

    Free Tools

    KendoReact Free VB.NET to C# Converter Testing Framework
    View all products
  • Overview
  • Demos
    • What's New
    • Roadmap
    • Release History
  • Support and Learning

    • Support and Learning Hub
    • First Steps
    • Docs
    • Demos
    • Virtual Classroom
    • Use Reports in Applications
    • System Requirements
    • Forums
    • Videos
    • Blogs
    • Submit a Ticket
    • FAQs
  • Pricing
  • Shopping cart
    • Account Overview
    • Your Licenses
    • Downloads
    • Support Center
    • Forum Profile
    • Payment Methods
    • Edit Profile
    • Log out
  • Login
  • Contact Us
  • Try now
Search all

Class BinaryStream

Inheritance
System.Object
System.MarshalByRefObject
System.IO.Stream
BinaryStream
Namespace: Telerik.OpenAccess
Assembly: Telerik.OpenAccess.dll

Syntax

public class BinaryStream : Stream, IDisposable

Constructors

BinaryStream()

Declaration
public BinaryStream()

BinaryStream(IOpenAccessBinaryStream, String)

Declaration
public BinaryStream(IOpenAccessBinaryStream info, string fieldName)
Parameters
IOpenAccessBinaryStream info

System.String fieldName

Properties

Append

Declaration
public bool Append { get; set; }
Property Value
System.Boolean

CanRead

Declaration
public override bool CanRead { get; }
Property Value
System.Boolean

Overrides
System.IO.Stream.CanRead

CanSeek

Declaration
public override bool CanSeek { get; }
Property Value
System.Boolean

Overrides
System.IO.Stream.CanSeek

CanWrite

Declaration
public override bool CanWrite { get; }
Property Value
System.Boolean

Overrides
System.IO.Stream.CanWrite

Length

Declaration
public override long Length { get; }
Property Value
System.Int64

Overrides
System.IO.Stream.Length

Position

Declaration
public override long Position { get; set; }
Property Value
System.Int64

Overrides
System.IO.Stream.Position

Methods

CheckAccess(Boolean)

Declaration
protected virtual bool CheckAccess(bool write)
Parameters
System.Boolean write

Returns
System.Boolean

Dispose(Boolean)

Declaration
protected override void Dispose(bool disposing)
Parameters
System.Boolean disposing

Overrides
System.IO.Stream.Dispose(System.Boolean)

Flush()

Declaration
public override void Flush()
Overrides
System.IO.Stream.Flush()

GetLengthInternal()

Declaration
protected virtual long GetLengthInternal()
Returns
System.Int64

Initialize(IOpenAccessBinaryStream, String)

Declaration
public virtual void Initialize(IOpenAccessBinaryStream newBinaryInfo, string newFieldName)
Parameters
IOpenAccessBinaryStream newBinaryInfo

System.String newFieldName

InitializeStreamDefaults(Boolean, Boolean, Boolean, Int32)

Declaration
protected void InitializeStreamDefaults(bool canRead, bool canSeek, bool canWrite, int bufferSize)
Parameters
System.Boolean canRead

System.Boolean canSeek

System.Boolean canWrite

System.Int32 bufferSize

MarkModified()

Declaration
protected virtual void MarkModified()

Read(Byte[], Int32, Int32)

Declaration
public override int Read(byte[] buffer, int offset, int count)
Parameters
System.Byte[] buffer

System.Int32 offset

System.Int32 count

Returns
System.Int32

Overrides
System.IO.Stream.Read(System.Byte[], System.Int32, System.Int32)

ReadInternal(Byte[], Int32, Int32)

Declaration
protected virtual int ReadInternal(byte[] buffer, int offset, int count)
Parameters
System.Byte[] buffer

System.Int32 offset

System.Int32 count

Returns
System.Int32

Seek(Int64, SeekOrigin)

Declaration
public override long Seek(long offset, SeekOrigin origin)
Parameters
System.Int64 offset

System.IO.SeekOrigin origin

Returns
System.Int64

Overrides
System.IO.Stream.Seek(System.Int64, System.IO.SeekOrigin)

SeekInternal(Int64, SeekOrigin)

Declaration
protected virtual long SeekInternal(long offset, SeekOrigin origin)
Parameters
System.Int64 offset

System.IO.SeekOrigin origin

Returns
System.Int64

SetLength(Int64)

Declaration
public override void SetLength(long length)
Parameters
System.Int64 length

Overrides
System.IO.Stream.SetLength(System.Int64)

SetLengthInternal(Int64)

Declaration
protected virtual void SetLengthInternal(long length)
Parameters
System.Int64 length

Write(Byte[], Int32, Int32)

Declaration
public override void Write(byte[] buffer, int offset, int count)
Parameters
System.Byte[] buffer

System.Int32 offset

System.Int32 count

Overrides
System.IO.Stream.Write(System.Byte[], System.Int32, System.Int32)

WriteInternal(Byte[], Int32, Int32)

Declaration
protected virtual void WriteInternal(byte[] buffer, int offset, int count)
Parameters
System.Byte[] buffer

System.Int32 offset

System.Int32 count

Getting Started
  • Install Now
  • Online Demos
Support Resources
  • Documentation
  • Knowledge Base
  • Videos
  • Reporting Samples Repository
  • Reporting Release History
Community
  • Forums
  • Blogs
  • Reporting Feedback Portal

Copyright © 2018 Progress Software Corporation and/or its subsidiaries or affiliates.
All Rights Reserved.

Progress, Telerik, and certain product names used herein are trademarks or registered trademarks of Progress Software Corporation and/or one of its subsidiaries or affiliates in the U.S. and/or other countries. See Trademarks for appropriate markings.