简体   繁体   中英

How to save a file from a URL in Parse.com using Javascript

I know the syntax for saving files in Parse.com ( https://www.parse.com/docs/js_guide#files-classes ), but now I have a URL instead of a local file - http://graph.facebook.com/ {FacebookID}/picture, how can I save it in Parse? Thanks!

You can't create/save a Parse File with the contents of a remote file, only data you have locally (like a base 64 encoded string, or a byte array, etc.)

See the Parse File (JavaScript) docs here: https://parse.com/docs/js_guide#files

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM