次の方法で共有


IDTSBuffer100.GetBLOBData メソッド

IDTSBuffer100 の列に格納された、バイナリ ラージ オブジェクト (BLOB) からのバイトの配列を取得します。

名前空間:  Microsoft.SqlServer.Dts.Pipeline.Wrapper
アセンブリ:  Microsoft.SqlServer.DTSPipelineWrap (Microsoft.SqlServer.DTSPipelineWrap.dll)

構文

'宣言
Sub GetBLOBData ( _
    hRow As Integer, _
    hCol As Integer, _
    dwOffset As UInteger, _
    ByRef lpPointer As Byte, _
    dwLength As UInteger, _
    <OutAttribute> ByRef lpdwWritten As UInteger _
)
'使用
Dim instance As IDTSBuffer100 
Dim hRow As Integer 
Dim hCol As Integer 
Dim dwOffset As UInteger 
Dim lpPointer As Byte 
Dim dwLength As UInteger 
Dim lpdwWritten As UInteger

instance.GetBLOBData(hRow, hCol, dwOffset, _
    lpPointer, dwLength, lpdwWritten)
void GetBLOBData(
    int hRow,
    int hCol,
    uint dwOffset,
    ref byte lpPointer,
    uint dwLength,
    out uint lpdwWritten
)
void GetBLOBData(
    [InAttribute] int hRow, 
    [InAttribute] int hCol, 
    [InAttribute] unsigned int dwOffset, 
    [InAttribute] unsigned char% lpPointer, 
    [InAttribute] unsigned int dwLength, 
    [OutAttribute] unsigned int% lpdwWritten
)
abstract GetBLOBData : 
        hRow:int * 
        hCol:int * 
        dwOffset:uint32 * 
        lpPointer:byte byref * 
        dwLength:uint32 * 
        lpdwWritten:uint32 byref -> unit
function GetBLOBData(
    hRow : int, 
    hCol : int, 
    dwOffset : uint, 
    lpPointer : byte, 
    dwLength : uint, 
    lpdwWritten : uint
)

パラメーター

  • dwOffset
    型: System.UInt32
    列に格納されたバイト データの、バイトの読み取りを開始する場所です。
  • lpPointer
    型: System.Byte%
    取得されるバイトの配列の先頭バイトを指す参照パラメーターです。
  • dwLength
    型: System.UInt32
    列から取得するバイト数です。
  • lpdwWritten
    型: System.UInt32%
    lpPointer パラメーターに書き込まれたバイト数を示す out パラメーターです。

説明

DT_IMAGE などの BLOB を含む列からデータを取得する場合、BLOB 内の先頭位置を dwOffset パラメーターで指定し、取得するバイト数を dwLength パラメーターで指定します。 BLOB のデータのサイズがコンピューターの使用可能なメモリを超える場合に発生する状況を回避するため、セクションの BLOB 列からデータを取得することをお勧めします。

このメソッドを使用して、IDTSBuffer100 の hCol パラメーターで指定した列からバイトの一部を取得します。 このメソッドは、通常、BLOB セクションを順に読み取る場合に使用されます。

関連項目

参照

IDTSBuffer100 インターフェイス

Microsoft.SqlServer.Dts.Pipeline.Wrapper 名前空間