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!