Perforce API for the .Net CLR P4.Net

P4Connection.PrintBinary Method 

Print the contents of a file in Perforce to a byte array.

[Visual Basic]
Public Function PrintBinary( _
   ByVal depotPath As String _
) As Byte()
[C#]
public byte[] PrintBinary(
   string depotPath
);

Parameters

depotPath
Perforce path to the file.

Return Value

Contents of the file. Text files will be encoded with ANSI encodinge. Unicode files will be encoded as UTF-8 (regardless of P4CHARSET setting).

See Also

P4Connection Class | P4API Namespace