Hi,
I would like to create one binary value for multiple PDF's.
Like below sample I get a docuref and send it binary into SQL.
How can I expand it so I get one binary with multiple PDF's inside?
pslip = conIns(pslip,packingSlipCounter 1,inventTrans.PackingSlipId);
datephys = conIns(datephys,packingSlipCounter 1,inventTrans.DatePhysical);
refid = conIns(refid,packingSlipCounter 1,inventTransOrigin.ReferenceId);
for(int i = 1; i <=conLen(pslip); i )
{
custPackingSlipJour = CustPackingSlipJour::findFromCustPackingSlipTrans(conPeek(refid, i), conPeek(pslip, i), conPeek(datephys, i));
select docuRef
where docuRef.RefCompanyId == custPackingSlipJour.DataAreaId &&
docuRef.RefTableId == custPackingSlipJour.TableId &&
docuRef.RefRecId == custPackingSlipJour.RecId &&
docuRef.TypeId == begaParameters.DocuTypeId;
if (docuRef)
{
System.IO.Stream stream = DocumentManagement::getAttachmentStream(docuRef);
cmrFile = filePath docuRef.originalFileName();
System.IO.FileStream fileStream = new System.IO.FileStream(cmrFile, System.IO.FileMode::Create, System.IO.FileAccess::ReadWrite);
stream.CopyTo(fileStream);
fileStream.Close();
}
////
////
strfmt(",(sele///ct * FROM Openro/wset( Bulk '%1', Single_Blob) as CmrImage)",cmrFile)