-
Radostin MinchevHas successfully completed the online course Basics (100)1 year ago #35071
Hello,
I have a PDF file uploaded in the Assets of my application and I want to get this PDF in a BO. Is it possible, or should I store the file somewhere else?
Thank you!
Jennifer HäfnerHas successfully completed the online course Intermediate (200)Has successfully completed the online course Advanced (300)Has successfully completed the online course Basics (100)Has successfully completed the online course Advanced (310)Has successfully completed the online course Advanced (320)Has successfully completed the Intermediate CertificationHas successfully completed the Advanced Certification1 year ago #35075::Sure, here is the link to the Standard Content transport for Simplifier 6.5/7.0: https://community.simplifier.io/downloads/standard-content/
And here for Simplifier 7.1: https://community.simplifier.io/downloads/standard-content-7-1/
Jennifer HäfnerHas successfully completed the online course Intermediate (200)Has successfully completed the online course Advanced (300)Has successfully completed the online course Basics (100)Has successfully completed the online course Advanced (310)Has successfully completed the online course Advanced (320)Has successfully completed the Intermediate CertificationHas successfully completed the Advanced Certification1 year ago #35073::Hi Radostin,
You can access files from the assets section in Client-Side Business Objects.
For example, you can use the CSBO ‘SIMP_FileHelper’ – ‘readFileByUrl’, which is part of our Standard Content. This function takes the data URL as an input parameter and returns the file as a blob and base64.
If your PDF in the assets section is called ‘Test.pdf’, then the corresponding data URL will be ‘./data/Test.pdf’.
You must be logged in to reply to this topic.