Bulk image upload possible?
-
Is it possible to upload a bunch of images to the server and have them be recognized and accessible by the editor? I need to make a dynamic PDF using the api that will need to pull in several dynamic images but I'm trying to figure out how to get the images up on the server and available to use without having to import them through the user interface.
Thanks.
-
hi! i think that you have some options to fit your case:
- upload all your dynamic/static images to a central server (images.yourappdomain.com) and in the data that you send to jsreport for your templates just send normal links/urls (http://images.yourappdomain.com/myimage.jpg), your templates should take the links and apply them
<img src={{imageLink}} />
- send your images as base64 text (this is what i do in my apps in production) and in the data that you send to jsreport send
data uri
for all dynamic images that you are using (ex: https://playground.jsreport.net/studio/workspace/SJY5btUAx/10)
- upload all your dynamic/static images to a central server (images.yourappdomain.com) and in the data that you send to jsreport for your templates just send normal links/urls (http://images.yourappdomain.com/myimage.jpg), your templates should take the links and apply them
-
Hi, thanks for this info and so quickly! I think these idea will help. I'll play a bit and let you know if I have any other questions. Thanks so much!