Skip links

CompanyImage Tablosundan resmi fiziksel bir ortama aktarma


Notice: Trying to access array offset on value of type bool in /var/www/vhosts/dmrbt.com/httpdocs/wp-content/themes/boo/rella/extensions/aq_resizer/aq_resizer.php on line 117

Notice: Trying to access array offset on value of type bool in /var/www/vhosts/dmrbt.com/httpdocs/wp-content/themes/boo/rella/extensions/aq_resizer/aq_resizer.php on line 118

Notice: Trying to access array offset on value of type bool in /var/www/vhosts/dmrbt.com/httpdocs/wp-content/themes/boo/rella/extensions/aq_resizer/aq_resizer.php on line 117

Notice: Trying to access array offset on value of type bool in /var/www/vhosts/dmrbt.com/httpdocs/wp-content/themes/boo/rella/extensions/aq_resizer/aq_resizer.php on line 118
CompanyImage Tablosundan resmi fiziksel bir ortama aktarma

//Write EmplImage to File Path
public static void  writeCompanyImageToFilePath(EmplId _emplId, str _filePath)
{
#macrolib.File
CompanyImage companyImage;
EmplTable emplTable;
Image myImg ;
FileIOPermission permission;
;

//find Employee
emplTable = EmplTable::find(_emplId);
//getting image from CompanyImage
companyImage = CompanyImage::find(emplTable.dataAreaId, emplTable.TableId, emplTable.RecId);
myImg = new Image(companyImage.Image);
filePath= _filePath +”\\”+  _emplId + “.jpg”;
if(!System.IO.File::Exists(_filePath))
{
permission = new FileIOPermission(filePath, #io_write);
permission.assert();
myImg.saveImage(_filePath);
}
}
//MUAMMER YİĞİT

Join the Discussion