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_DownLoadPicture

### Interface Definition

C++C#

    1
    2
    3
    4
    5
    6
    BOOL NET_SDK_DownLoadPicture(
        LONG lUserID,
        NET_SDK_IMAGE captureImage,
        NET_SDK_IMAGE_INFO* pOutImageInfo,
        char* pOutBuffer,
        int outBufferSize);

    1
    2
    3
    4
    5
    6
    public static extern bool NET_SDK_DownLoadPicture(
        int lUserID,
        NET_SDK_IMAGE captureImage,
        ref NET_SDK_IMAGE_INFO pOutImageInfo,
        IntPtr pOutBuffer,
        Int32 outBufferSize);

### Function Description

Download remote images (supported only by N9000 devices).

### Parameter Description

Parameters | Type | Remark
--- | --- | ---
lUserIDin | LONG | User ID, the return value of `NET_SDK_Login` or `NET_SDK_LoginEx`.
captureImagein | `NET_SDK_IMAGE` | A piece of data in the list of searched pictures returned by `NET_SDK_SearchPictures`.
pOutImageInfoout | `NET_SDK_IMAGE_INFO`* | Information about the downloaded image.
pOutBufferout | char* | Returns the image data (this will only take effect when the image exists and the requested space size is greater than or equal to the image size).
outBufferSizein | int | The buffer size requested by pOutBuffer.

### Return Value

- Type：BOOL

- Remark：TRUE is returned on success, including the following two situations: If the picture exists and the size of outBufferSize is smaller than the size of the picture, success is returned, and the upper-layer application can parse the parameters in pOutImageInfo to get the size of the picture. If the picture exists and the size of outBufferSize is greater than or equal to the size of the downloaded picture, pOutBuffer returns the picture data; FALSE is returned on failure.

### Remarks

None

Error Code