How to Overwrite Item Content

In AutoClassifier, it is possible to overwrite item content (BLOB).

Overwriting Item Content Example

The following example shows how you can overwrite item content (BLOB) in AutoClassifier:

  1. Add one scripting stage to your processing pipeline. See How to use a custom logic script.
  2. Write custom code to prepare the item content you want to set (Byte Array).
  3. Update your item content with the new content by using the item.RawData public member from the processing item object model.

    For example:

    Example
    var path = @"C:\OnePath\Document.docx";
    var tempRawData = File.ReadAllBytes(path);
    item.RawData = tempRawData;