openDICOM.NET API Reference (openDICOM# Class Library)

TransferSyntax.ToBytes Method 

Converts a string into an array of bytes by this DICOM transfer syntax instance's character repertoire.

public virtual byte[] ToBytes(
   string s
);

See Also

TransferSyntax Class | openDicom.Encoding Namespace