Allows the storing of files into a database.
Default constructor
public Void BinaryAttachment()
Initializes a new instance of BinaryAttachment.
public Void BinaryAttachment(serialized)
Name | Type | Summary |
---|---|---|
serialized | Byte[] | The serialized data. |
Initializes a new instance of BinaryAttachment.
public Void BinaryAttachment(serialized, throwIfError)
Name | Type | Summary |
---|---|---|
serialized | Byte[] | The serialized data. |
throwIfError | Boolean | true is an exception must be thrown if deserialization fails, otherwise false. |
Type | Summary |
---|---|
BinaryAttachmentFormatException | Thrown when throwIfError is true and serialized could not be deserialized. |
Initializes a new instance of BinaryAttachment.
public Void BinaryAttachment(data, fileName, contentType)
Name | Type | Summary |
---|---|---|
data | Byte[] | The attachment file content. |
fileName | String | The attachment file name. |
contentType | String | The attachment content type. |
The binary data to be stored into the database field.
public Byte[] BinaryData { get; }
The content length of the attached file.
public Int64 ContentLength { get; }
Content type of the file contained into this object
public String ContentType { get; set; }
File content of this attachment
public Byte[] FileContent { get; set; }
File name of this attachment
public String FileName { get; set; }
Returns a textual repredentation of this BinaryAttachment.
public String ToString()
In this document