setContent(byte[]) method

Use this method to set the attachment's content.

Syntax

void setContent ( byte[] content )

Parameters

Usage

The

Blob

object which is saved to the database is generated automatically, when this method is called.