I was retrieving an image from parse using a url, like this
var imgPaht = user.get("ProfilePic");
$('<img src="' + imgPaht + '">').load(function() {
$(this).width(400).height(400).appendTo('#profile_pic');
})
Now in parse, the image is not held as a string, its held as a file. How do I change the above line to work with a file and not a url.
I've tried
var profilePhoto = profile.get("ProfilePic");
$("profileImg")[0].src = profilePhoto.url();
Error I'm getting