【问题标题】:Does Cloud Functions for Firebase support file operation? [duplicate]Cloud Functions for Firebase 是否支持文件操作? [复制]
【发布时间】:2017-05-08 17:33:43
【问题描述】:

我正在开发一个移动应用程序,它使用Firebase 作为后端。
我想在使用Cloud Functions 上传到Cloud Storage 后立即压缩一些文件。

所以我需要将数据写入临时文件,并在压缩完成后将文件上传到云存储。

这可能吗? Firebase Cloud Function 是否支持文件操作?

【问题讨论】:

标签: node.js firebase google-cloud-functions


【解决方案1】:

是的,您可以在函数运行的实例中写入 /tmp。您可以看到 image manipulation 与 ImageMagick 对临时文件的示例,以及提供的 many other samples

【讨论】:

  • 我可以在本地开发和测试时写信给/tmp吗?谢谢!
  • 是的,我可以!感谢您的图像处理示例。
猜你喜欢
  • 2017-09-16
  • 2017-10-09
  • 1970-01-01
  • 1970-01-01
  • 2018-09-22
  • 2017-09-07
  • 2018-01-03
  • 2022-12-01
相关资源
最近更新 更多