public interface IAttachment : IDataModel<IAttachment>, IDataModelParent, IDataModelWithContext, ISupportModules<IAttachment>, IDataModelGet<IAttachment>, IDataModelUpdate, IDataModelDelete, IQueryableDataModel
Get the content of this attachment.
Declaration
Stream GetContent(bool streamContent = false)
Parameters
|
bool
streamContent
Already return the content before all bytes are read, needed for large file downloads
|
Returns
|
Stream
Stream containing the binary content of the attachment
|
Get the content of this attachment.
Declaration
Task<Stream> GetContentAsync(bool streamContent = false)
Parameters
|
bool
streamContent
Already return the content before all bytes are read, needed for large file downloads
|
Returns
|
Task<Stream>
Stream containing the binary content of the attachment
|
Get the content of the attachment.
Declaration
Returns
|
byte[]
The binary content of the attachment
|
Get the content of this attachment.
Declaration
Task<byte[]> GetContentBytesAsync()
Returns
|
Task<byte[]>
The binary content of the attachment
|