How to add videos to firebase database using flutter - flutter

I need a way to add videos to a firebase database, and I was able to find a video where someone had explained how to do this with native coding, but I was wondering if there was a way to do this with flutter.

This will not be possible (if you are sane).
The maximum data size of a string in the Realtime Database is 10 MB and it would be one hell of a torture to try to store videos in chunks of UTF-8 encoded strings.
Firebase offers Cloud Storage for Firebase, where you can easily store videos and other files.
The documentation is great for beginners with Cloud Storage and it should be easy to integrate it into your existing Realtime Database project.
If you compare GB stored of the Realtime Database and Cloud Storage on the pricing page, you will quickly realise that it would be insane to store videos in the Database instead of Cloud Storage.
The documentation on the Firebase website do not yet include Flutter, but the firebase_storage Flutter plugin is easy to operate in combination with the official docs.

Related

Download UI contents from a URL in flutter

I am building a flutter app that will contain a lot of animated pictures and 3d objects. Many of those animations will be choosen based on the user choice of gender when registering for the first time. So one of the issues with flutter is that it normally takes a lot of storage and with this animations its gonna need even more storage. So I was wondering if there is a way to keep those animations online in some cloud or in firestore DB and then when the user register for the first time I download it and assign it to the UI to be permenantly there instead of like storing all these Gifs in the assets.
Any suggestiong to avoid storing all of the animations and images in the assets.
Since you said you have lots of images, I would suggest you use a dedicated server to store your images.
If you haven't any dedicated server, then you should use firebase to store your images.
You should follow this link to fetch images from firebase.
Also, you should follow this link to store your images in the cache & in the future fetch from the cache easily.

Optimal data storage options for image and videos

Our application produces images and big videos which we want to store on server, so they are available for other applications (web and desktop). What is the best option for image and video storage for proprietary data, cloud APIs or VPS extra hard drives? Based on pricing and storage / retrieval performance. Can you please guide us?

Best way to store video for a Flutter Application

I'm working on a Flutter App and want to include some Tutorial Videos, which all Users have unlimited access to, so they can rewatch it any time. The Videos will be about 10-20 files with 1-5 minutes length.
I guess these amount of data will be too big to be stored as app assets, so I researched a bit and found Firebase Storage and AWS MediaStore.
Thoughts on this ? Or any recommendations - I don't want to run in the wrong direction.
I suggest hosting them on a private S3 bucket with a public CloudFront distribution in front of it for best performance. HLS file groups are fine.
This might be a bit of an obvious answer but my suggestion is that you place these videos on YouTube and mark them as Unlisted. This way you can build the URLs of these videos into your Flutter application and then load those videos with a web_view plugin that you can find on pub.dev.

How to make chat app featuring with file upload like images, videos or pdf in Flutter

I know how to code a chat app with Firebase but have no clue with how to do the file sharing feature in flutter with in the chat screen. I am seeking tutorials to help me learn and understand the same. Also the db is not fixed with Firebase. socket.io is what I was thinking to use with MySQL to save the chat, as socket.io is free.
I am happy to hear what is the best suggested technology on the same in term of solution.
You can integrate image,video and pdf feature with the help you third party storage like firebase storage, aws s3 (simple storage service) etc.
And first you have to upload particular file upload into the storage and after that you will gate a link of that uploaded file and now you have to store that link into the firebase database. and after then you will share videourl in video library and imageurl in networkimage() and pdfurl in pdf library.

facebook application to store data (mp3)

I would like to develop a facebook app (using as3) where the output is xml files and mp3 files. what are the recommended way of doing so ?
From small research I did I came up with these options so far:
convert xml files to sql tables , store the mp3 as a blob using facebook sql // is that allowed? what is the size limit for the table?
use amazon cloud service ? // up tp 5gb free but I would rather find a completely free option.
Thanks
Facebook doesn't have storage facility, you can use dropbox (2gb), sky-drive (5gb), live-kive (5gb) and recently, Box.net offers 50GB free for Apple mobile devices only :(