将图像上传到存储桶 [英] Uploading Image to Bucket

查看:82
本文介绍了将图像上传到存储桶的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用angular4将图像上传到Google云端点上的存储桶.我不想使用nodejs,因为我不想在我的角度项目中使用require.或者在angular4中有使用require的替代方法,例如使用import代替require

How can I Upload images to my bucket on google cloud endpoint using angular4. I don't want to use nodejs because i don't want to use require in my angular project. Or is there an alternative to using require in angular4 .For example using import instead of require

推荐答案

使用Firebase SDK,它使用的是您创建的GCP项目的Google存储空间(因此您无需注册新服务)

Use the Firebase SDK, it is using Google Storage of the GCP project you created (so you don't need to register to a new service)

https://firebase.google.com/docs/storage/web/start

这篇关于将图像上传到存储桶的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆