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


IRasterWorkspace3.OpenRasterDatasetFromBytes Method (ArcObjects .NET 10.4 SDK)
ArcObjects Library Reference (DataSourcesRaster)  

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(
  ppBytes* ppBytes,
  VARIANT_BOOL Copy,
  IRasterDataset** ppRasterDataset
);
[C++]

Parameters ppBytes [in] ppBytes is a parameter of type Copy [in] Copy is a parameter of type VARIANT_BOOL ppRasterDataset [out, retval]
ppRasterDataset is a parameter of type IRasterDataset

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