
Hi All ,
I am trying to implement the signature capture options in D365 finance and operations .
I have Third party application which will send an string to an Extension table i need to convert it into image and show the image to the respective customer .
I have create one extension table and added in the CustTable form and on the event handler of the datasource that is selction control i want to read the string and covert into memory stream and using image class and creating the image .
But i am geeting issue who to do i get the image control using from the form control .
Can please any one guide me on that
Thanks !!
Hi Pushpsingh,
Please try:
System.IO.MemoryStream myStream = new System.IO.MemoryStream();
Binary binaryImage;
// stream goes to raw binary
binaryImage = Binary::constructFromMemoryStream(myStream);
// create a blank image and copy our binary data to the image format
image = new Image();
image.setData(binaryImage.getContainer());
// copy the image data to the image control
MyImage.image(image);