3

I have images stored in a parse database under the column image.

Using a query and the .get("image") command, I can get an [OBJECT object] type of thing returning in the js.

So how do I use this object to actually show the image?

image.getUrl() tells me .getUrl() isn't a function so I guess it isn't that

5
  • I am working on same but i can't able to run jquery code please refer this link my question and help me Commented Aug 7, 2015 at 13:26
  • 1
    just check it with image._url Commented Aug 7, 2015 at 13:34
  • thanks but its resolved now hurrrra.!! Commented Aug 7, 2015 at 13:52
  • @VRK thanks very much, you were right! not sure why I couldn't find that info online... Commented Aug 7, 2015 at 14:25
  • the link posted by @Quentin doesn't work anymore, you'd want to look at the documentation link posted in the answer below Commented Nov 27, 2015 at 16:28

2 Answers 2

1

Basically if you see your return image object and stringify it you will get all details about image.

so the image URL is

image._url
Sign up to request clarification or add additional context in comments.

Comments

1

The best practice for getting a Parse a file or image is here in the documentation.

object.get("image").url()

Hope this helps!

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.