RawDataFromFile Method
Creates a new
RawData instance from the binary content of a file.
Namespace: FolkerKinzel.VCards.ModelsAssembly: FolkerKinzel.VCards (in FolkerKinzel.VCards.dll) Version: 8.0.1+a91cc3f0fd39aeb548e16006a60ca9dd10a304a2
public static RawData FromFile(
string filePath,
string? mediaType = null
)
Public Shared Function FromFile (
filePath As String,
Optional mediaType As String = Nothing
) As RawData
public:
static RawData^ FromFile(
String^ filePath,
String^ mediaType = nullptr
)
static member FromFile :
filePath : string *
?mediaType : string
(* Defaults:
let _mediaType = defaultArg mediaType null
*)
-> RawData
- filePath String
- Path to the file.
- mediaType String (Optional)
- The Internet Media Type ("MIME type") of the file content,
or null to get the mediaType automatically from the
file type extension.
RawDataThe newly created
RawData instance.