Chili.Opf3 Send comments on this topic.
Blob Class
See Also  Members   Example 
Chili.Opf3 Namespace : Blob Class




Represents a BLOb (binary large object).

Syntax

Visual Basic (Declaration) 
Public NotInheritable Class Blob 
   Implements IUserDefinedType 
Visual Basic (Usage)Copy Code
Dim instance As Blob
C# 
public sealed class Blob : IUserDefinedType  
Managed Extensions for C++ 
public __gc __sealed class Blob : public IUserDefinedType  
C++/CLI 
public ref class Blob sealed : public IUserDefinedType  

Example

The example shows how to use the Blob class in a persistent object.
C#Copy Code
            [Persistent("USER")] 
public class User 

    [Field("IMAGE", Mandatory = false)] 
    public Blob Image 
    { 
        // ... code of the property. 
    } 
  
    [Field("ID", Mandatory = true, Identifier = true)] 
    public ID<string> Id 
    { 
        // ... code of the property. 
    } 
  
    // ... Other code of the class. 

  
// ... Other code. 
  
User user = new User(); 
user.Image.Value = // Save something in it. 
    

Remarks

This class is used to save and load BLObs from and to the storage. BLObs are binary fields that contain an array of data (for example an image, sound, movies or something else). Usually the storage returns them directly as byte array which is not very convenient: therefore the framework provides the Blob class that encapsulates the byte array and provides a more convenient access to the data.

Inheritance Hierarchy

System.Object
   Chili.Opf3.Blob

Requirements

Namespace: Chili.Opf3

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

Assembly: Chili.Opf3 (in Chili.Opf3.dll)

See Also