Hello,
I need to create a code unit method to get item picture.
I only have the SetItemPicture method working.
SetItemPicture(ItemNo : Code[20];Picture : BigText)
Item.GET(ItemNo);
Bytes := Convert.FromBase64String(Picture);
MemoryStream := MemoryStream.MemoryStream(Bytes);
Item.Picture.IMPORTSTREAM(MemoryStream, ItemNo, 'image/png');
Item.MODIFY;
I tried couple of example but they never work with NAV 2017
Thanks,
/Eric
*This post is locked for comments