firebase-storage

how to add multiple images into firebase database

為{幸葍}努か 提交于 2020-03-06 09:24:06
问题 How can I add multiple images into Firebase Realtime Database My Code private void uploadProductToFirebase() { final StorageReference imageFilePath = ProductImagesRef; for (int uploadCount = 0; uploadCount<ImageList.size(); uploadCount++){ Uri IndividualImage= ImageList.get(uploadCount); final StorageReference ImageName = imageFilePath.child(pname); final int finalUploadCount = uploadCount; ImageName.putFile(IndividualImage).addOnSuccessListener(new OnSuccessListener<UploadTask.TaskSnapshot>(

Firebase storage downloadUrl completion handler always returns error

流过昼夜 提交于 2020-03-05 03:06:29
问题 So I am following the documentation but I always get this error: There was an error: User does not have permission to access gs://***-*****.appspot.com/(null). The images are uploaded successfully though. The only thing is that when the completion handler gets called, it returns an error and I cannot fetch the image path. Any help is appreciated. Here is the code: func uploadImage(_ image: UIImage, completion: @escaping (String?, Error?) -> Void) { let filename = "\(Date()

How to upload multiple files to firebase - React JS

不想你离开。 提交于 2020-03-03 11:56:39
问题 I am working on React JS app, where I am trying to upload files to Firebase. I can easily upload the files and even a single file but the problem is when I am trying to show the progress of the file uploaded on individual file. I have built a UI, when a user selects files, the files get rendered and shows the file size, name and type etc. When I click the upload button, the upload get started in the background. What I am trying to do is, how can I show the progress of multiple files on the

How to upload multiple files to firebase - React JS

北城余情 提交于 2020-03-03 11:55:18
问题 I am working on React JS app, where I am trying to upload files to Firebase. I can easily upload the files and even a single file but the problem is when I am trying to show the progress of the file uploaded on individual file. I have built a UI, when a user selects files, the files get rendered and shows the file size, name and type etc. When I click the upload button, the upload get started in the background. What I am trying to do is, how can I show the progress of multiple files on the

App crashes when saving a cropped photo to FirebaseStorage

萝らか妹 提交于 2020-03-03 11:54:21
问题 I want to save in the firebase storage, a photo that's cropped using the CropImage libraray from github. Everything works all right, until I hit the crop button. This is how I get and store the image from the Crop Image Activity; @Override protected void onActivityResult(int requestCode, int resultCode, @Nullable Intent data) { super.onActivityResult(requestCode, resultCode, data); if(requestCode == GALLERY_PICK && resultCode == RESULT_OK) { Uri imageUri = data.getData(); CropImage.activity

Android Firebase uploading images wrong URL (PROBLEM: X-Goog-Upload-Comment header is missing)

半腔热情 提交于 2020-03-03 07:28:09
问题 I'm trying to upload and download images from Firabase Database which has an URL link to Firebase Storage. The problem is that the strange URL is being saved to database (see the link at the bottom). What should I do to obtain a normal URL that I will be able to use do downloand the image into my Android app? Thank you in advance! Here I post some code I use: Upload to Firebase DataBase and Storage: mStorageRef = FirebaseStorage.getInstance().getReference(); mDataBaseRef = FirebaseDatabase

Android Firebase uploading images wrong URL (PROBLEM: X-Goog-Upload-Comment header is missing)

情到浓时终转凉″ 提交于 2020-03-03 07:28:07
问题 I'm trying to upload and download images from Firabase Database which has an URL link to Firebase Storage. The problem is that the strange URL is being saved to database (see the link at the bottom). What should I do to obtain a normal URL that I will be able to use do downloand the image into my Android app? Thank you in advance! Here I post some code I use: Upload to Firebase DataBase and Storage: mStorageRef = FirebaseStorage.getInstance().getReference(); mDataBaseRef = FirebaseDatabase

How to change region of existing Firebase project?

孤街浪徒 提交于 2020-02-27 04:56:18
问题 I have a project that is located in the Central America region, but since I can choose a European region, I would like to change the location of the firestore and storage. Is it possible to do this without deleting the existing project? Updated Responce from technical support: Thank you for reaching out to us. Currently, once you select a location for your project, you cannot change it. You might find this documentation useful for additional information. https://firebase.google.com/docs

How to make firebase storage reference to a certain bucket?

眉间皱痕 提交于 2020-02-26 04:05:34
问题 I create a new bucket in a region near from my users location (asia-southeast1) so hopefully it will fetch the image faster in the client side, I want to upload image and also to download image from that new bucket. but I don't how to make reference to that new bucket. usually I use the code below in Android to create reference for default bucket val ref = FirebaseStorage.getInstance().reference.child("profilePicture") so how to download and upload image from that bucket? I assume that I have

How to make firebase storage reference to a certain bucket?

感情迁移 提交于 2020-02-26 04:05:07
问题 I create a new bucket in a region near from my users location (asia-southeast1) so hopefully it will fetch the image faster in the client side, I want to upload image and also to download image from that new bucket. but I don't how to make reference to that new bucket. usually I use the code below in Android to create reference for default bucket val ref = FirebaseStorage.getInstance().reference.child("profilePicture") so how to download and upload image from that bucket? I assume that I have