Question2Replies2673Views Will Cho Member since 2008 90 posts PEGA Posted: 2 years agoLast activity: 2 years 6 months ago Closed Solved Convert PDF stream to byteHi, I'm getting this exception when calling ConcatenateEForms.com.pega.pegarules.pub.PRRuntimeException: Object at index #2 was not an byte. Basically, index #2 contains a PDF file stream (converted from Word stream). See attached.Perhaps, this is not a byte format? If so, how can I convert PDF stream into byte so that I can combine multiple PDFs together using ConcatenateEForms?Thanks in advance,Will Data Integration Java and Activities Case Management ×Close popoverFacebookTwitterLinkedinEmail Copy Link Copied! Moderation Team has archived post This thread is closed to future replies. Content and links will no longer be updated. If you have the same/similar Question, please write a new Question. Posted: 2 years agoAsif Hasan PEGA replied to Will ChoHi Chow, Thanks for posting on PSC, Review these articles, it may give you idea to convert in to byte stream:- - https://pdn.pega.com/community/pega-product-support/question/convert-do… - https://pdn.pega.com/community/product-support/question/pdf-stream-tiff… and https://pdn.pega.com/community/product-support/question/get-case-attach… (These two isn't much relevant but may give you the idea to customise and get your requirement fulfilled). Hope it helps, kindly notify if it does Or Please share if you get a better solution for broader Pega Community. Regards, Asif Accepted Solution Posted: 2 years agoWill Cho PEGA replied to Will ChoThis worked. Attached. This was the difference maker - Base64Util.decodeToByteArray.