Monday, 18 February 2019

Trying to save video/audio files to DB

Currently I am working on a project which is saving audio/video files to db (mongoDB to be more specific) and lets users do CRUD operations on them.I have done lot of research about recording audio/video files with node, and all of them are indicating that recording audio/video should be done on front end and then passed to back-end, but i am having problems exactly there.​I can record the video/audio file on front-end(react) but i am getting some blob file there which you can see in the browser and play it but its like one time thing, if you save the blob link to open it later it is not working, link is just empty. and I need to save this video/audio file to DB.​Since I want to save this video/audio to DB, there comes the second problem, which is passing this files to the DB, tried connecting front and back with axios which kinda worked but there is just blob link being sent which is useless...​So the main obstacle is saving the video/audio file to DB and then retrieving it, i am pretty much stuck at this stage right now, maybe somebody has experience in this kind of project and can give some advice, or maybe there is some library which can help me manage all this.​​

Submitted February 18, 2019 at 07:44AM by Garywil

No comments:

Post a Comment