I use Javascript REST api for Sharepoint in order to create files on my Sharepoint server and then open/edit them with Office Web. I am able to create new files on the server and it works fine, but I can't edit the files with Office Web. I noticed that When I create new docx files using the sharepoint site, the files has size ~19KB and I can edit them with Office Web, But when I create files using the REST api, the created files are empty (0KB) and I cannot edit them with office web (Office Web says "Sorry,this document cant be opened for editing"). It seems to me that I need somehow to fill the empty files with the content of an empty editable docx file and then I will be able to edit them with office web.
I searched all over the internet about this problem but i didn't find something useful.
Thanks,