Getting the file from the attachment control and using it in other parts can be done using both the “code” and the “design” method, which is given below the related description.

bpmAppService.BPMSServices.DmsService.GetFile (input1);
input1: attribute associated with attach control (domainObject. [adjective name])
Output: String