T
Tim Kelley
I am working on a program the reads the user comment field of a jpg file.
When I read it in using GetPropertyItem to get the property and saving it to
a variable with item=Encoding.UTF8.GetString(PropItem.Value).Trim() I get a
string that looks like \0\0\0\0\0\0my text here.
Is there a way for me to strip all of the \0s from the string?
Thanks,
Tim
When I read it in using GetPropertyItem to get the property and saving it to
a variable with item=Encoding.UTF8.GetString(PropItem.Value).Trim() I get a
string that looks like \0\0\0\0\0\0my text here.
Is there a way for me to strip all of the \0s from the string?
Thanks,
Tim