Skip to main content
Suggested answer

Export Image from a Table field to a local directory

editSubscribe (0) ShareShare
ReportReport
Posted on by 8
Hi,
 
I want to export the image saved in a table for example CompanyImage and I want to export the Image from Companyimage to a local directory on my system. I followed the following link: https://eprogrammers.blogspot.com/2016/07/how-to-export-import-images-or-pictures.html
 
Kindly see the code below that I wrote.
 
 
I am getting an error in AifUtil::saveBase64ToFile(@filepath, content) that this method does not exist in this class. It is true that this method does not exist in this class but every guide article mentions only this way to export images. The other way I tried is as follows:
 
 
It is also not working as no file is saving in the directory. Any quick solutions by the community are appreciated. Thanks!