Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/redis/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何仅在reactnative中将特定用户的图像上载到firebase?_Firebase_React Native_Authentication_React Redux - Fatal编程技术网

如何仅在reactnative中将特定用户的图像上载到firebase?

如何仅在reactnative中将特定用户的图像上载到firebase?,firebase,react-native,authentication,react-redux,Firebase,React Native,Authentication,React Redux,我正在构建一个应用程序作为我的家庭作业,但遇到了一个问题,我不知道如何添加特定用户的图像,然后在登录后显示?您可以使用谷歌云存储从移动设备或后端上传图像 你需要为此注册 如果要直接从设备上载,可以使用REST API,如下所示: curl -X POST --data-binary @[OBJECT_LOCATION] \ -H "Authorization: Bearer [OAUTH2_TOKEN]" \ -H "Content-Type: [OBJECT_CONTENT_TYPE]" \

我正在构建一个应用程序作为我的家庭作业,但遇到了一个问题,我不知道如何添加特定用户的图像,然后在登录后显示?

您可以使用谷歌云存储从移动设备或后端上传图像

你需要为此注册

如果要直接从设备上载,可以使用REST API,如下所示:

curl -X POST --data-binary @[OBJECT_LOCATION] \
-H "Authorization: Bearer [OAUTH2_TOKEN]" \
-H "Content-Type: [OBJECT_CONTENT_TYPE]" \
"https://www.googleapis.com.com/upload/storage/v1/b/[BUCKET_NAME]/o?uploadType=media&name=[OBJECT_NAME]"

提到

请提供更多有关流程的信息?