Files.FileToByteArray Method

NSG Library

FilesFileToByteArray Method

Read a file into a in-memory byte array.

Namespace:  NSG.Library.Helpers
Assembly:  NSG.Library.Helpers (in NSG.Library.Helpers.dll) Version: 1.0.1.17 (1.0.1.17)
Syntax
public static byte[] FileToByteArray(
	string filePath
)
Public Shared Function FileToByteArray ( 
	filePath As String
) As Byte()
public:
static array<unsigned char>^ FileToByteArray(
	String^ filePath
)
static member FileToByteArray : 
        filePath : string -> byte[] 

Parameters

filePath
Type: SystemString
full path and file name

Return Value

Type: Byte
byte array
Remarks
The opposite of ByteArrayToFile
See Also