Skip to content
This SDK only works with devices released within the past 3 years. We regularly optimize and update the SDK to ensure compatibility and performance. We do not guarantee compatibility or provide technical support for devices older than 3 years.

# NET_SDK_CaptureJPEGData_V2

### Interface Definition

C++C#

    1
    2
    3
    4
    5
    6
    BOOL NET_SDK_CaptureJPEGData_V2(
        LONG lUserID,
        LONG lChannel,
        char* sJpegPicBuffer,
        DWORD dwPicSize,
        LPDWORD lpSizeReturned);

    1
    2
    3
    4
    5
    6
    public static extern Boolean NET_SDK_CaptureJPEGData_V2(
        Int32 lUserID,
        Int32 lChannel,
        IntPtr sJpegPicBuffer,
        UInt32 dwPicSize,
        ref int lpSizeReturned);

### Function Description

JPEG format capture interface.

### Parameter Description

Parameters | Type | Remark
--- | --- | ---
lUserIDin | LONG | User ID, the return value of `NET_SDK_Login` or `NET_SDK_LoginEx`.
lChannelin | LONG | Channel number, starting from 0. This parameter is invalid for IPC devices.
sJpegPicBufferout | char* | Capture JPEG data buffer.
dwPicSizein | DWORD | SJpegPicBuffer buffer size
lpSizeReturnedout | LPDWORD | The actual JPEG data size obtained by capturing the image.

### Return Value

- Type：BOOL

- Remark：Returns TRUE if successful, FALSE if failed.

### Remarks

This interface can realize JPEG capture without opening the bit stream.

Error Code