
I need help to upload file (Image) through Cloud Function. Now i receive an error message, ""error": "Cannot read properties of undefined (reading 'Symbol(Symbol.asyncIterator)')" with base64 technique.
my code is: // Decode the base64-encoded image const base64Data = profilePicture.replace(/^data:image/\w+;base64,/, ""); const buffer = Buffer.from(base64Data, 'base64');
// Save the decoded image as a file const filePath = path.join('/tmp', ${ID.unique()}.png); fs.writeFileSync(filePath, buffer); const fileStream = fs.createReadStream(filePath);
//Save file to storage const uploadedFile = await storage.createFile(teacherImageBucketId, ID.unique(), fileStream);

I need help to upload file (Image) through Cloud Function. (Node js)
Recommended threads
- Use cloudflare origin certificate instea...
Hello! Is it possible to use cloudflare origin certificates instead of let's encrypt? We manage all ssl certs in our cloudflare account and our VMs has a firewa...
- Failed to verify JWT. Invalid token: Exp...
Hi I am trying to call a function from my mobile app, but I am receiving "Invalid token expired." My code looks more or less like this ```ts // from my app ...
- Unable to View / Edit Bucket Files
Hi! I am unable to view / edit Bucket Files. While Previews work just fine, clicking the actual file to view or edit it produces the errors seen in the attache...
