Please help us by completing this survey

Go to survey
Documentation

Docs / Concepts / Binary Field

Binary Field

Binary Field is used for storing binary data. This is the most important Field defined on the File Content Type: after uploading a file the binary content of your file will be stored in a Binary field.

In a Binary field any kind of binary data can be stored without length restrictions. This is very useful, when you want to store uploaded files on your portal. The following apply to the behavior of the field:

Field handler

Usage in CTD:

   <Field name="BinaryData" type="Binary">
   ...
   </Field>

Supported Field Controls

Configuration

The following properties can be set in the Field’s Field Setting configuration:

The IsText configuration property value is only a hint and the Binary Field Control displaying the control can override this setting in cases when the Content has a special extension or it is a Content Type.

Example

Fully featured example:

<Field name="BinaryData" type="Binary">
   <DisplayName>Binary content.</DisplayName>
   <Description>This field contains the binary of a file.</Description>
   <Configuration>
      <ReadOnly>false</ReadOnly>
      <Compulsory>false</Compulsory>
      <IsText>true</IsText>
   </Configuration>
</Field>

The above example configures the Binary field so that:

Is something missing? See something that needs fixing? Propose a change here.