Any piece of data is a block of bytes; in .NET usually represented as the array
byte[]
. And each byte can be represented as octal string:
byte[] data =
string octalNumber = System.Convert(data[someIndex], 8);
On top of it, convert your data the way you like.
—SA