com.esri.arcgis.system
Interface IMemoryBlobStream

All Superinterfaces:
IBlobStream, ISequentialStream, IStream, Serializable
All Known Subinterfaces:
IMemoryBlobStream2
All Known Implementing Classes:
MemoryBlobStream

public interface IMemoryBlobStream
extends IBlobStream, Serializable

Provides access to members that control the Blob Stream.

Superseded By

IMemoryBlobStream2

Product Availability

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


Method Summary
 void attachToMemory(byte[] blobMemory, int size, int transferOwnership)
          Attaches the stream to memory.
 void getMemory(byte[] blobMemory, int[] size)
          The memory of the blob stream.
 void importFromMemory(byte[] blobMemory, int size)
          Import using another blob.
 
Methods inherited from interface com.esri.arcgis.system.IBlobStream
getSize, loadFromFile, saveToFile, setSize
 
Methods inherited from interface com.esri.arcgis.system.IStream
commit, esri_clone, lockRegion, remoteCopyTo, remoteSeek, revert, setSize, stat, unlockRegion
 
Methods inherited from interface com.esri.arcgis.system.ISequentialStream
remoteRead, remoteWrite
 

Method Detail

attachToMemory

void attachToMemory(byte[] blobMemory,
                    int size,
                    int transferOwnership)
                    throws IOException,
                           AutomationException
Attaches the stream to memory. If transferOwnership is true, memory must be allocated with HeapAlloc() using GetProcessHeap().

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Parameters:
blobMemory - An unsigned byte (in)
size - The size (in)
transferOwnership - The transferOwnership (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

importFromMemory

void importFromMemory(byte[] blobMemory,
                      int size)
                      throws IOException,
                             AutomationException
Import using another blob.

Product Availability

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

Supported Platforms

Windows, Solaris, Linux

Parameters:
blobMemory - An unsigned byte (in)
size - The size (in)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.

getMemory

void getMemory(byte[] blobMemory,
               int[] size)
               throws IOException,
                      AutomationException
The memory of the blob stream.

Product Availability

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

Parameters:
blobMemory - An unsigned byte (out: use single element array)
size - The size (out: use single element array)
Throws:
IOException - If there are interop problems.
AutomationException - If the ArcObject component throws an exception.