Update Repository.js to works with png by wdison · Pull Request #649 · github-tools/github
Using the raw parameter within the options of the writeFile method, this tool works with the sending of png images, it has not been tested with other files, but I think this solution will work for others as well.
```
writePng(fileNamePng:string,base64Png:any,commitMsg:string=''){
let initialMessage=commitMsg||'Commit de '+base64Png;
let option = {encode:false,raw:true}
const promise = this.bagRepo.writeFile('master', base64Png, base64Png, initialMessage, option);
promise.then((valor:any) => {
// console.log(valor);
},this.initRepo);
return promise;
}
```