Recent posts:
Recent replies:

EDIT: Please ignore this I just answered my own question, I would just manually assign the path to a var in the DTL to be passed into the decode function

One more quick question, 
The aim was to create a non-specific utility function for use anywhere a PDF needs to be extracted, Instead of passing the field contents in as a string as then writing that to a stream object,  How would I programmatically get the path of the field in question as a string from within a DTL? 

E.g instead of getting the contents of the field at PIDgrpgrp(1).ORCgrp(1).OBXgrp(1).OBX:5(1).5,
I would want to get "PIDgrpgrp(1).ORCgrp(1).OBXgrp(1).OBX:5(1).5" as variable varFieldPath  to pass into the decode function via GetFieldStreamRaw() to give something like:

Set tSC=source.GetFieldStreamRaw(.varBase64,varFieldPath )

Thanks for your help, it's really appreciated :)

Ah ok thanks for explaining, I'll make some changes to avoid any potential issues, Thanks for your help

Hi Jeffrey, 
Thanks for your reply, I've been able to extract the PDF now,
What's the advantage of using GetFieldStreamRaw() over refencing the field directly?
I don't really have an understanding of best practice with this language yet but I'm trying to learn so any more info would be appreciated, 

Thanks for your help
 

Followers:
Ben has no followers yet.
Following:
Global Masters badges:
Ben has no Global Masters badges yet.