Ok sorry to make you confuse..
Let me help rephrase use case.
we wanted local images/User generate image from client device to use as environment. so first i thought to use localfilesystem API.
But after your reply i search and found that localfilesystem API is not accepted or got traction as web standard yet.
so I fall back to using WebRTC route with getusermedia API and I thought let user click the photo from WebRTC and lets reuse same image stream from WebRTC to inject as material.
Looks like from your reply its tricky to achieve in babylon . let me explore few more high level library . I will keep posted if i found some work around.
Incase you come across any workaround please let us know..
Thanks