Thanks for your replay sir,
We have an one ISV module and that same module process used in an one App.
Third party Mobile app guy.
Form : HcmPersonImage things i want to do in class.
As i mentioned above form there is two process.
So i wrote a two operation for that.
1.Show image operation below my code its okay for me.
public PersonPhotoData getPersonPhoto(HcmWorkerRecId _workerRecid, DataAreaId _dataAreaid)
{
PersonPhotoData photoData; // Contract class our own
HcmWorker hcmWorker = HcmWorker::find(_workerRecid);
HcmPersonImage hcmPersonImage;
BinData imageData;
photoData = new PersonPhotoData();
changecompany(_dataAreaid)
{
select firstOnly Image from hcmPersonImage
where hcmPersonImage.Person == hcmWorker.Person;
if (hcmPersonImage.Image)
{
imageData = new BinData();
imageData.setData(hcmPersonImage.Image);
photoData.parmPersonPhoto(imageData.base64Encode());
}
}
return photoData;
}
2 . things upload image
Here is It should be file as stream then upload it and i Don't wanna use file upload controller.
Because the upload thing [He will use mobile third party guy.
How to do Please give me example Martin sir.
Thanks
Thanks for your replay Ergun Shain sir,
As i mentioned same thing i want to do in class.