> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superoffice.com/llms.txt
> Use this file to discover all available pages before exploring further.

# NSBlobEntity

> Carrier object for BlobEntity.

Carrier object for BlobEntity.

## Constructors

### NSBlobEntity()

```crmscript theme={null}
NSBlobEntity
```

Initializes a new instance of the NSBlobEntity class.

## Methods

## GetBlobId()

```crmscript theme={null}
Integer GetBlobId()
```

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - Primary key.

**Example:**

```crmscript theme={null}
NSBlobEntity thing;
Integer blobId = thing.GetBlobId();
```

## GetBlobSize()

```crmscript theme={null}
Integer GetBlobSize()
```

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - The length, in bytes, of the binary data AS STORED after any encryption and/or zipping. Important to get right, since some databases will not tell us just based on the blob itself!

**Example:**

```crmscript theme={null}
NSBlobEntity thing;
Integer blobSize = thing.GetBlobSize();
```

## GetConceptualType()

```crmscript theme={null}
String GetConceptualType()
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - The type, for instance PHOTO, PERSONPHOTO, or whatever, that is descriptive of what kind of image or data this is.

**Example:**

```crmscript theme={null}
NSBlobEntity thing;
String conceptualType = thing.GetConceptualType();
```

## GetCreatedBy()

```crmscript theme={null}
NSAssociate GetCreatedBy()
```

**Returns:** [CRMScript.NetServer.NSAssociate](CRMScript.NetServer.NSAssociate) - The person that first created the document. The property is read-only.

**Example:**

```crmscript theme={null}
NSBlobEntity thing;
NSAssociate createdBy = thing.GetCreatedBy();
```

## GetCreatedDate()

```crmscript theme={null}
DateTime GetCreatedDate()
```

**Returns:** [CRMScript.Global.DateTime](CRMScript.Global.DateTime) - Registered when.

**Example:**

```crmscript theme={null}
NSBlobEntity thing;
DateTime createdDate = thing.GetCreatedDate();
```

## GetDescription()

```crmscript theme={null}
String GetDescription()
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - A description that is entered by the user, and visible to the user.

**Example:**

```crmscript theme={null}
NSBlobEntity thing;
String description = thing.GetDescription();
```

## GetExtraInfo()

```crmscript theme={null}
String GetExtraInfo()
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - Extra information, spare field, can be used for anything that makes sense.

<Note>
  Should not refer to any particular context, that is something for the BinaryObjectLInk
</Note>

**Example:**

```crmscript theme={null}
NSBlobEntity thing;
String extraInfo = thing.GetExtraInfo();
```

## GetIsEncrypted()

```crmscript theme={null}
Bool GetIsEncrypted()
```

**Returns:** [CRMScript.Global.Bool](CRMScript.Global.Bool) - Has the data been encrypted?

**Example:**

```crmscript theme={null}
NSBlobEntity thing;
Bool isEncrypted = thing.GetIsEncrypted();
```

## GetIsZipped()

```crmscript theme={null}
Bool GetIsZipped()
```

**Returns:** [CRMScript.Global.Bool](CRMScript.Global.Bool) - Has the data been zipped?

**Example:**

```crmscript theme={null}
NSBlobEntity thing;
Bool isZipped = thing.GetIsZipped();
```

## GetMimeType()

```crmscript theme={null}
String GetMimeType()
```

**Returns:** [CRMScript.Global.String](CRMScript.Global.String) - Mime type, describing the technical type (image/jpeg) of the data.

**Example:**

```crmscript theme={null}
NSBlobEntity thing;
String mimeType = thing.GetMimeType();
```

## GetOriginalSize()

```crmscript theme={null}
Integer GetOriginalSize()
```

**Returns:** [CRMScript.Global.Integer](CRMScript.Global.Integer) - Original size of the binary data, before encryption and/or zipping.

<Note>
  This is what the ultimate client will get
</Note>

**Example:**

```crmscript theme={null}
NSBlobEntity thing;
Integer originalSize = thing.GetOriginalSize();
```

## GetUpdatedBy()

```crmscript theme={null}
NSAssociate GetUpdatedBy()
```

**Returns:** [CRMScript.NetServer.NSAssociate](CRMScript.NetServer.NSAssociate) - The person that last updated the appointment.

**Example:**

```crmscript theme={null}
NSBlobEntity thing;
NSAssociate updatedBy = thing.GetUpdatedBy();
```

## GetUpdatedDate()

```crmscript theme={null}
DateTime GetUpdatedDate()
```

**Returns:** [CRMScript.Global.DateTime](CRMScript.Global.DateTime) - Last updated when.

**Example:**

```crmscript theme={null}
NSBlobEntity thing;
DateTime updatedDate = thing.GetUpdatedDate();
```

## SetBlobId(Integer)

```crmscript theme={null}
Void SetBlobId(Integer blobId)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSBlobEntity thing;
Integer blobId;
thing.SetBlobId(blobId);
```

## SetBlobSize(Integer)

```crmscript theme={null}
Void SetBlobSize(Integer blobSize)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSBlobEntity thing;
Integer blobSize;
thing.SetBlobSize(blobSize);
```

## SetConceptualType(String)

```crmscript theme={null}
Void SetConceptualType(String conceptualType)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSBlobEntity thing;
String conceptualType;
thing.SetConceptualType(conceptualType);
```

## SetCreatedBy(NSAssociate)

```crmscript theme={null}
Void SetCreatedBy(NSAssociate createdBy)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSBlobEntity thing;
NSAssociate createdBy;
thing.SetCreatedBy(createdBy);
```

## SetCreatedDate(DateTime)

```crmscript theme={null}
Void SetCreatedDate(DateTime createdDate)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSBlobEntity thing;
DateTime createdDate;
thing.SetCreatedDate(createdDate);
```

## SetDescription(String)

```crmscript theme={null}
Void SetDescription(String description)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSBlobEntity thing;
String description;
thing.SetDescription(description);
```

## SetExtraInfo(String)

```crmscript theme={null}
Void SetExtraInfo(String extraInfo)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSBlobEntity thing;
String extraInfo;
thing.SetExtraInfo(extraInfo);
```

## SetIsEncrypted(Bool)

```crmscript theme={null}
Void SetIsEncrypted(Bool isEncrypted)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSBlobEntity thing;
Bool isEncrypted;
thing.SetIsEncrypted(isEncrypted);
```

## SetIsZipped(Bool)

```crmscript theme={null}
Void SetIsZipped(Bool isZipped)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSBlobEntity thing;
Bool isZipped;
thing.SetIsZipped(isZipped);
```

## SetMimeType(String)

```crmscript theme={null}
Void SetMimeType(String mimeType)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSBlobEntity thing;
String mimeType;
thing.SetMimeType(mimeType);
```

## SetOriginalSize(Integer)

```crmscript theme={null}
Void SetOriginalSize(Integer originalSize)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSBlobEntity thing;
Integer originalSize;
thing.SetOriginalSize(originalSize);
```

## SetUpdatedBy(NSAssociate)

```crmscript theme={null}
Void SetUpdatedBy(NSAssociate updatedBy)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSBlobEntity thing;
NSAssociate updatedBy;
thing.SetUpdatedBy(updatedBy);
```

## SetUpdatedDate(DateTime)

```crmscript theme={null}
Void SetUpdatedDate(DateTime updatedDate)
```

**Returns:** [CRMScript.Global.Void](CRMScript.Global.Void)

**Example:**

```crmscript theme={null}
NSBlobEntity thing;
DateTime updatedDate;
thing.SetUpdatedDate(updatedDate);
```


## Related topics

- [NSBLOBAgent](/en/automation/crmscript/reference/CRMScript.NetServer.NSBLOBAgent.md)
- [Namespace CRMScript.NetServer](/en/automation/crmscript/reference/CRMScript.NetServer.md)
- [Delete Blob Entity](/en/api/reference/restful/agent/blob_agent/delete-blob-entity.md)
- [Save Blob Entity](/en/api/reference/restful/agent/blob_agent/save-blob-entity.md)
- [Get Blob Entity](/en/api/reference/restful/agent/blob_agent/get-blob-entity.md)
- [Create Default Blob Entity](/en/api/reference/restful/agent/blob_agent/create-default-blob-entity.md)
