how to store image in container :
Create a field in table of Type contianer which must extend EDT:Bitmap
code:
public Bitmap getImage()
{
Bitmap bitmap;
Bindata binData ;
FileIOPermission perm;
FilePath _filepath = "c:\\sample.jpg"
;
perm = new FileIOPermission(_filePath, 'r');
perm.assert();
binData = new BinData();
if (binData.loadFile(_filepath))
{
bitmap = binData.getData();
}
CodeAccessPermission::revertAssert();
return bitmap;
}
after that you assign this method to contianer = > table.Field = class.getImage()
Create a field in table of Type contianer which must extend EDT:Bitmap
code:
public Bitmap getImage()
{
Bitmap bitmap;
Bindata binData ;
FileIOPermission perm;
FilePath _filepath = "c:\\sample.jpg"
;
perm = new FileIOPermission(_filePath, 'r');
perm.assert();
binData = new BinData();
if (binData.loadFile(_filepath))
{
bitmap = binData.getData();
}
CodeAccessPermission::revertAssert();
return bitmap;
}
after that you assign this method to contianer = > table.Field = class.getImage()