≡ Menu

Image stored in Dynamics Ax 2012 tables

In dynamics Ax 2012, You can read image from physical path and stored in database as follow

BinData binData = new BinData();
str extention, path, nameOfFile;
container imageContainer;
str imageFilePathName;
// if ( WinAPI::fileExists(imageFilePathName))
imageContainer = binData.getData();
table.Person = _Party.RecId;
table.Image = imageContainer;


This code runs both for server side and client side. At server side execution table use winserverapi::FileExists

{ 0 comments… add one }

Leave a Comment