'How to read comma separated meta tags from an image using VB

I am trying to read the comma-separated meta tags from an image file using vb. Also, I tried to achieve the Image class and PropertyItems properties to achieve this requirement. But I am able to read only the tags separated by semicolon or white space.

   Dim tags = myImage.PropertyItems.FirstOrDefault(Function(pi) pi.Id = &H9C9E)
   If tags IsNot Nothing Then
     Dim tagsValue = Encoding.Unicode.GetString(tags.Value)
   End If

your help on this would be greatly appreciated



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source