10/7/2016 - 9:10 AM


' For complete examples and data files, please go to
' initialize JpegFormat
Dim jpegFormat As New JpegFormat(Common.MapSourceFilePath(filePath))

' check if JPEG contain photoshop metadata
If jpegFormat.HasImageResourceBlocks Then

    ' get native photoshop metadata
    Dim imageResource As ImageResourceMetadata = jpegFormat.GetImageResourceBlocks()

    ' display all blocks
    For Each imageResourceBlock As ImageResourceBlock In imageResource.Blocks
        Console.WriteLine("Id: {0}, size: {1}", imageResourceBlock.DefinedId, imageResourceBlock.DataSize)

        ' create your own logic to parse image resource block
        Dim data As Byte() = imageResourceBlock.Data
End If