This topic was automatically generated from Slack. You can find the original thread here.
Csaba Seregy : Hi team, i’m asking for a little help unfortunately i’m new to nodejs but with pipedream’s implementation it’s not even difficult to get used to it . I’m trying to migrate all of my google drive pictures from a specified folder to imgbb.com and I have 2 predefined steps that works perfectly for small sized pictures (1mb, every image beyond that limit exceeds the memory, because the base64 data is being stored in a variable, which is i know not the best practice), i’m using the steps.googledrive_download_file and the steps.upload_picture (for imgbb) . How can i combine these two with data streaming, can i reference to a file that got created with steps.googledrive_download_file inside of the steps.upload_picture? Any help would be highly appreciated. Thanks in advance
Dylan Sather (Pipedream) : Would you mind clicking on the Share button in the top-right of your workflow and sharing it with dylan@pipedream.com? I’m away from my computer at the moment but will take a look ASAP
Csaba Seregy : The thing is , it gets the image first from google (binary) and saves it under a variable, if takes too much space it raises this error message, data streaming would be ideal, but i’m not entirely how can that be done within nodejs async
Dylan Sather (Pipedream) : I worked on another workflow specific to the Google Drive case. The first step asks for a file ID from Google Drive and a location (like /tmp/file.png) where you’d like to save the file to disk. I published that as an action you can use (see GIF).
I’m not super familiar with the ImgBB upload API, but it looks like they accept multipart/form-data requests. You can stream a file upload in that manner with axios using some of the suggestions here and here.
Csaba Seregy : Cool stuff, i didn’t see it before when i selected the google drive and typed download… Now i just have to figure out the imgbb part and to find out how a photo can be streamed there from a file