Heads up! These docs are for Portofino 3, which is a legacy product. Check out Portofino 4!
Copyright 2008-2012 ManyDesigns srl. All rights reserved.

Purpose

A BLOB attribute is a type of attribute that is suitable to contain documents, images, and other binary files.

The storage of a BLOB attribute is made of two parts. Suppose you load a file called "mydocument.pdf"
The binary data are stored on the file system using a numeric file name (such as "1", "2", etc.) instead of the original file name.
The actual name ("mydocument.pdf") and a reference to the numeric file name are stored in the database.

This approach allows performance and portability across all database technologies supported by Portofino.

You generally don't need to care about the storage details which happen automatically behind the scenes. However a correct initial configuration of the system is important and will be discussed here.

Configuration

The configuration is based on two parameters in the portofino-custom.properties file:
  • versioning.cvs.workingDirectory: the path to a directory for storing data relative to one or more Portofino projects. E.g.: /var/lib/portofinoprojects
  • model.cvs.module: the name of your project. E.g.: myproj
The directory where blobs are stored is given by:

<versioning.cvs.workingDirectory>/<model.cvs.module>/blob/

For the example values given above, this would result in the following path:

/var/lib/portofinoprojects/myproj/blob/


Previous: Reports

Next: Class inheritance