Hi All,
I have created new form and data source for that form.
Added image (Bitmap) type of fields on table & give “ADD” and “Remove” button on the form for image operation.
After i have added 2/3 images i am getting error message.
Please suggest how to solve this error.
Thanks & Regards,
Mehul Thacker
hi Mehul,
use this method in form…
void UploadImage()
{
FilenameFilter filter;
Bindata binData;
int _hwnd;
//haredCaptial SharedCaptial;
str extention, path, nameOfFile;
;
filter = [‘Image Files’,’.bmp;.jpg;.gif;.jpeg’];
binData = new BinData();
imageFilePathName = WinAPI::getOpenFileName(_hwnd,filter,’’, “@SYS53008”, ‘’,’’);
if (imageFilePathname && WinAPI::fileExists(imageFilePathName))
{
[path, nameOfFile, extention] = fileNameSplit(imageFilePathName);
if (extention == ‘.bmp’ ||
extention == ‘.jpg’ ||
extention == ‘.gif’ ||
extention == ‘.jpeg’)
{
binData.loadFile(imageFilePathName);
image = binData.getData();
element.UploadImage();
LoadImage.ImageLoad = image;
}
else
{
throw error("@SYS89176");
}
}
}
and take Bitmap in Form Design and take button and use this click method in button
void clicked()
{
;
element.UploadImage();
}
Thanks & Regards
Nitesh Gangrade
Finally, i captured it.
Its due to row size limitation of SQL server.
Regards,
Mehul Thacker