Create a new binary storage with the given stream and extension.
Namespace: Cartella.InterfacesAssembly: AssetManagementSystem (in AssetManagementSystem.dll) Version: 4.1.0.171 (4.1.0.171)
Syntax
| C# |
|---|
string CreateAssetBinary( Stream file, string extension ) |
| Visual Basic |
|---|
Function CreateAssetBinary ( _ file As Stream, _ extension As String _ ) As String |
| Visual C++ |
|---|
String^ CreateAssetBinary( Stream^ file, String^ extension ) |
Parameters
- file
- Type: System.IO..::..Stream
Stream to be saved
- extension
- Type: System..::..String
File extension for the binary (can be null or emtpy)
Return Value
Location of the binary saved, usable for binary lookup
Exceptions
| Exception | Condition |
|---|---|
| System..::..ArgumentNullException | Thrown if a null "file" parameter is passed in |
| System..::..ArgumentException | Thrown if the file stream passed in is not readable |