This topic was automatically generated from Slack. You can find the original thread here.
How can I use puppeteer on pipedream? I want to use some code that takes a screenshot of a specific page after the trigger is set off, and add the screenshot to a discord alert
Okay I’ve got to where I have base64 picture from browserless, but now how do I use it to send the picture to something like discord that require a url?
Hello , you can store the base64 image to the /tmp dir (using Node.js/Python code step) and upload it to a Cloud Storage provider such as Google Drive, Box, AWS, etc…
• Google Drive
• Box
• AWS S3
Finally, you can pass the public link to Discord
I’ve got to the part where I can save the file a d everything to the drive, but it’s now allowing me to use the base64 code from the previous step this way? How do I fix that
So now my problem is that discord webhook doesn’t allow using drive url for images in the embed, but I can use the discord attach image, so how do I get around that? I want the image as a part of the embed
Sure, so basically I have it working like this, but when you attach file it doesn’t become part of the embed, unless you use url, so im trying to send the picture to url to use in the embed
I recommend that you store your image in a service that provides a publicly accessible URL. I’m not sure if Google Drive allows public accessible URLs by default via uploads to their API