
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
- line 1: 107 Killed npm run build
When trying to deploy my Nuxt app for testing, it goes through rendering chunks successfully and once it gets to Initializing the pre-renderer it throws this er...
- selfhost install fail on version 1.7.4
Docker compose + logs: https://pastebin.com/4P3xbnfw After a fresh install, I create an account and while it attempts to send me the on boarding to onboard my ...
- Failing to run document operations on sd...
Could someone point me in the right direction I'm going in cirlces. I have a problem with sdks and my self-hosted server in production (for ~3 years) I have bee...
