This topic was automatically generated from Slack. You can find the original thread here.
Hello, I’d like some input about how I can do the following in a Pipedream workflow, please:
Download a file from some API
Upload / send that same file to another API
I’ve tried storing the downloaded file in the tmp directory, but confused about how to access it later on (and, according to the docs, it doesn’t have a big capacity, so I hesitate to use it at all - I need much more storage space).
Is there a way I can access the downloaded file (bytes) as a return value in another step, where I’m uploading it to another API, without storing it in tmp or using a file store?
My current workflow is something like:
• Download the file from API1
• It seems to return as a string, so I have a Python code step that encodes it into a bytes array and returns it
• I try accessing this file in another step, but the return value is “Unserializable object of type bytes”
Alternatively - can I send a file to Pipedream in a request and then do something with it in the workflow? (And can Pipedream workflows return files?) I’m thinking I could potentially break this process up into two workflows, if these would work.
How would this work if I want to fetch the file from an app using end user credentials? I am fetching the file using a request step for one of the apps Pipedream supports
I’m confused; pipedream doesn’t seem like it supports returning a file from a step. So is the only option then to use code steps and perform all the file downloading/uploading in a node code step