Free Support Forum - aspose.com

EntryID Match Issue

Not seeing the entry id is matching ..

Mounted PST in Outlook Email Entry ID:

00000000DC52055526F9FC4DBCDA96CEBD5B249C24002000

Aspose Reported String Email Entry ID:

AAAAANxSBVUm+fxNvNqWzr1bJJwkACAAv

Hello,


Outlook returns a hex string representation of EntryId. Aspose.Email returns a Base64 string representation of EntryId.

Example of convertation:

public static string HexToBase64(string hex)
{
return Convert.ToBase64String(Enumerable.Range(0, hex.Length)
.Where(x => x % 2 == 0)
.Select(x => Convert.ToByte(hex.Substring(x, 2), 16))
.ToArray());
}

string base64 = HexToBase64(“00000000DC52055526F9FC4DBCDA96CEBD5B249C24002000”);

Thanks

Thank you so very much! Since I need to work with Hex to find the emails in Windows Desktop Search this is what I used:

BitConverter.ToString( messageInfo.EntryId ).Replace("-", "");

Hi,


Thank you for providing the feedback. Please feel free to write us back for any other query related to Aspose.Email.