cor*_*ese 1 node.js firebase reactjs google-cloud-functions pinata
I'm trying to pass a file (image) from my Reactjs app to Firebase Functions to then upload it to Pinata using their Node.js sdk but my cloud function keeps returning: ERR_INVALID_ARG_TYPE
Is it possible to pass a file to Firebase Functions?
I need to eventually convert it to a readable stream to use Pinata.
Callable Cloud Functions仅接受 JSON 类型,因此您无法将File对象传递给它们。
你能做的是:
byte[](JSON 类型)或将其作为 base64 编码的字符串传递。| 归档时间: |
|
| 查看次数: |
650 次 |
| 最近记录: |