Skip to content

I can get a base64 code for a image, how i can upload this image by base64 code #3832

@rorry121

Description

@rorry121

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 ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions