ResourceHandlerGetByteArray Method  | 
Version 87.1.132 
            Gets a byteArray from the given string using the provided encoding
            
 
    Namespace: 
   CefSharp
    Assembly:
   CefSharp (in CefSharp.dll) Version: 87.1.132.0 (87.1.132.0)
Syntaxpublic static byte[] GetByteArray(
	string text,
	Encoding encoding,
	bool includePreamble = true
)
public:
static array<unsigned char>^ GetByteArray(
	String^ text, 
	Encoding^ encoding, 
	bool includePreamble = true
)
Parameters
- text
 - Type: SystemString
string to be converted to a stream - encoding
 - Type: System.TextEncoding
encoding - includePreamble (Optional)
 - Type: SystemBoolean
if true a BOM will be written to the beginning of the stream 
Return Value
Type: 
ByteA memory stream from the given string
See Also