firebase-storage

Cloud Functions: Resized images not loading

*爱你&永不变心* 提交于 2020-04-26 06:09:55
问题 I am following a tutorial to resize images via Cloud Functions on upload and am experiencing two major issues which I can't figure out: 1) If a PNG is uploaded, it generates the correctly sized thumbnails, but the preview of them won't load in Firestorage (Loading spinner shows indefinitely). It only shows the image after I click on "Generate new access token" (none of the generated thumbnails have an access token initially). 2) If a JPEG or any other format is uploaded, the MIME type shows

How To Populate A Gridview With Images Retreieved From Firebase Storage

大城市里の小女人 提交于 2020-04-18 03:45:14
问题 I have reviewed other similar posts before posting this, mine is different I am current retrieving a list of download urls from my Firestore data base, then trying to download those images from my firebase storage to display them in a gridview. This is my code so far: final Query chatRoomMsgs = db.collection("chatrooms").document(chatRoomID).collection("Messages").whereEqualTo("sentby", firebaseAuth.getUid()); chatRoomMsgs.get() .addOnSuccessListener(new OnSuccessListener<QuerySnapshot>() {

Kotlin - get Firebase Image DownloadUrl returns “com.google.android.gms.tasks.zzu”

喜你入骨 提交于 2020-04-17 22:46:23
问题 I am trying to upload images to Real time Firebase Database by creating two folders using Compressor library and need to display image like messenger with username but i am unable to display image due to url issue var filePath = mStorageRef!!.child("chat_profile_images") .child(userId + ".jpg") //Create another directory for thumbimages ( smaller, compressed images) var thumbFilePath = mStorageRef!!.child("chat_profile_images") .child("thumbs") .child(userId + ".jpg") filePath.putFile

Converting audio file when uploaded to google cloud storage

自闭症网瘾萝莉.ら 提交于 2020-04-15 06:42:14
问题 I have an app, where users record audio and then "send" to each other. I'm writing "send", because actually the file is stored on server, and just provided to the recipient, when they want to listen. My issue is, that I need to reformat the recording (currently .caf) to .mp3, so they will be both smaller and so I can play them with the audioplayer I'm using. My question then is: Is it possible to have a cloud function trigger on user upload, that would take the .caf file, convert it and in

Converting audio file when uploaded to google cloud storage

坚强是说给别人听的谎言 提交于 2020-04-15 06:41:42
问题 I have an app, where users record audio and then "send" to each other. I'm writing "send", because actually the file is stored on server, and just provided to the recipient, when they want to listen. My issue is, that I need to reformat the recording (currently .caf) to .mp3, so they will be both smaller and so I can play them with the audioplayer I'm using. My question then is: Is it possible to have a cloud function trigger on user upload, that would take the .caf file, convert it and in

Converting audio file when uploaded to google cloud storage

牧云@^-^@ 提交于 2020-04-15 06:41:20
问题 I have an app, where users record audio and then "send" to each other. I'm writing "send", because actually the file is stored on server, and just provided to the recipient, when they want to listen. My issue is, that I need to reformat the recording (currently .caf) to .mp3, so they will be both smaller and so I can play them with the audioplayer I'm using. My question then is: Is it possible to have a cloud function trigger on user upload, that would take the .caf file, convert it and in

Unable to play audio in firebase storage sent from android app

孤街浪徒 提交于 2020-04-11 06:33:38
问题 I am using firebase storage to upload audio from my android app and then download and play in my app. The audio file gets uploaded but when I play it from firebase storage,it comes in a video format like image below and does not play the audio. I am also setting metadata as audio/mp3 for it. I tried to search about the same in firebase documentation and google but could not get my issue resolved. Uri file = Uri.fromFile(new File(fileName)); //filename is audio stored in my phone's local

Unable to play audio in firebase storage sent from android app

家住魔仙堡 提交于 2020-04-11 06:33:08
问题 I am using firebase storage to upload audio from my android app and then download and play in my app. The audio file gets uploaded but when I play it from firebase storage,it comes in a video format like image below and does not play the audio. I am also setting metadata as audio/mp3 for it. I tried to search about the same in firebase documentation and google but could not get my issue resolved. Uri file = Uri.fromFile(new File(fileName)); //filename is audio stored in my phone's local

Flutter Upload batch of images and get all those URLs to store in Firestore

偶尔善良 提交于 2020-04-11 04:02:07
问题 I'm trying to upload n number of photos to Firebase Storage and save those URLs in an array inside Firestore, but I am not able to get the downloadURL() or I do not know where to find it rather. I've checked other answers but those were for single files, I'm trying to upload a batch and store the URLs together instead of uploading on and storing the URL to Firestore and so on and so forth... CODE: _uploadImages(String userID, String productID, List<File> images, Function onSuccess(List<String

How to upload files to firebase storage from google drive using Apps Script?

ぐ巨炮叔叔 提交于 2020-04-08 13:10:42
问题 I need some users to be able to upload files to firebase storage, but they're non tech-savvy, so I will let them upload to drive first, and mirror drive from storage. The thing is, I can't figure out how without having to host a server; google apps scripts can't access firebase storage easily (it can access both firebase databases though) and I need a server to use the google drive API, which could be done using firebase cloud functions, but I wonder if there is an easier alternative. 回答1: An