'Get custom field value for task in mpp file using mpxj

I am trying to fetch value set for a custom field for a task in a mpp file. Please help me find the right method in mpxj.mpp library.

I have tried the below code:

object fld = task.getFieldByAlias("EPC");
if (fld != null)
  Console.WriteLine("Custom Field Value : " + Convert.ToBase64String((byte[])fld));

However, the value I got is a set of characters which were not meaningful.



Sources

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

Source: Stack Overflow

Solution Source