Upload Image from Surface view to the Firebase Storage

Hello Koders,
I have Searched the Community & The internet beforehand and have failed to find a way to upload my files on firebase storage using web component. My actual issue is that I am capturing an image on surface view & trying to upload to cloud to save it on the rtdb of firebase. After trying several methods the image just does not upload. I even tried component to image but still failed. Please Guide me as soon as possible on how to solve this issue