addfiles(imagebase64):Observable {
let url = "http://XXXXX:1337/parse/files/111.jpg"
let addHeader = new Headers();
addHeader.append("X-Parse-Application-Id","XXXXX")
addHeader.append("X-Parse-Master-Key","XXXXX")
addHeader.append("Content-Type","plain/text")
return this.http.post(url, JSON.stringify({_ContentType: 'image/jpeg', base64: imagebase64}),{headers: addHeader})
}
And ,the file upload successfully,but when I open it ,it is string not a jpg ,how to do with it ?
addfiles(imagebase64):Observable {
let url = "http://XXXXX:1337/parse/files/111.jpg"
let addHeader = new Headers();
addHeader.append("X-Parse-Application-Id","XXXXX")
addHeader.append("X-Parse-Master-Key","XXXXX")
addHeader.append("Content-Type","plain/text")
return this.http.post(url, JSON.stringify({_ContentType: 'image/jpeg', base64: imagebase64}),{headers: addHeader})
}
And ,the file upload successfully,but when I open it ,it is string not a jpg ,how to do with it ?