-
Radostin Minchev
Has successfully completed the online course Basics (100)
2 years ago #35071Hello,
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äfner
Has 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 Certification
Has successfully completed the Advanced Certification
2 years 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äfner
Has 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 Certification
Has successfully completed the Advanced Certification
2 years 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.