combit List & Label 29 - .NET Help
combit.Reporting.Repository Namespace / RepositoryImportUtil Class / ImportImageFile Method

The List & Label instance that the repository is assigned to.

The local path of the file to import.

Optional. A custom string which will be passed back in the CreateOrUpdateItem call.



In This Topic
    ImportImageFile Method
    In This Topic

    Imports an image (.jpg /.png/.gif/...) file to the repository and returns the ID of the created repository item. Once the file is ready and the metadata objects are prepared, internally the repository's CreateOrUpdateItem method is called to store it into the repository.

    Syntax
    'Declaration
     
    
    Public Function ImportImageFile( _
       ByVal ll As ListLabel, _
       ByVal filePath As String, _
       Optional ByVal userImportData As String, _
       Optional ByVal folderId As String _
    ) As String

    Parameters

    ll

    The List & Label instance that the repository is assigned to.

    filePath

    The local path of the file to import.

    userImportData

    Optional. A custom string which will be passed back in the CreateOrUpdateItem call.

    folderId
    Requirements

    Platforms: Windows 10 (Version 21H2 - 23H2), Windows 11 (21H2 - 22H2), Windows Server 2016 - 2022
    .NET: .NET Framework 4.8, .NET 6, .NET 7, .NET 8

    See Also