This document is archived and information here might be outdated.  Recommended version.


IRasterWorkspace3.OpenRasterDatasetFromBytes Method (ArcObjects .NET 10.8 SDK)
ArcObjects Help for .NET developers > ArcObjects Help for .NET developers > ArcObjects namespaces > DataSourcesRaster > ESRI.ArcGIS.DataSourcesRaster > Interfaces > IR > IRasterWorkspace3 Interface > IRasterWorkspace3.OpenRasterDatasetFromBytes Method
ArcGIS Developer Help

IRasterWorkspace3.OpenRasterDatasetFromBytes Method

Opens a RasterDataset from an in-memry image.

[Visual Basic .NET]
Public Function OpenRasterDatasetFromBytes ( _
    ByRef ppBytes As Byte[]&, _
    ByVal Copy As Boolean _
) As IRasterDataset
[C#]
public IRasterDataset OpenRasterDatasetFromBytes (
    ref Byte[]& ppBytes,
    ref bool Copy
);
[C++]
HRESULT OpenRasterDatasetFromBytes(
  SAFEARRAY(System.Byte)* ppBytes,
  VARIANT_BOOL Copy
);
[C++]
Parameters
ppBytes [in]

ppBytes is a parameter of type SAFEARRAY(unsigned char)* Copy [in]
Copy is a parameter of type bool

Product Availability

Available with ArcGIS Engine, ArcGIS Desktop, and ArcGIS Server.

Remarks

This method is used to open a RasterDataset from bytes, an in-memory image, which is normally created from RasterExplorter or IRasterWorkspace2::CreateRasterDataset with "MEM" string.

See Also

IRasterWorkspace3 Interface