I have a workflow that creates an entry, then makes a web request that grabs image binary data, and then attaches it to the created entry.
This works great, the issue I'm running into is viewing the image inside the repo using the laserfiche viewer. It does not display an image when I open it because it's not generating pages for it. I know I can generate pages for it but I'm grabbing a ton of pictures and manually doing it is not an option. So I figured, I could setup quick fields agent to run after this workflow runs to generate pages for it. That doesn't work. I then did some digging around on this site and found a couple of scripts to export the image as a pdf but that's not working either, it makes a blank pdf. I then tried importing it using import agent and that was successfully making pages for it. So now, my question is; How can I export this jpg to a folder and possibly maintain the metadata already generated from the workflow (I have an idea on this already, but I'm open to suggestions)? I saw something about using DocumentExporter.ExportElecDoc but there was no code attached to it and I'm not familiar enough to build that script out. Thank you guys in advance for any help, I really appreciate it!
EDIT: I've already asked the third-party company if it's possible to receive the images in a TIFF format but it is not at this time.