cancel
Showing results for 
Search instead for 
Did you mean: 

Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.

Display image in app from image url in node's property

kave
Node Clone

Greetings,

I am using GrapheneDB 3.2 and node.js on Heroku.

How can I set an image link in a node's property and have that image show in the app?

Match (b:Beer)
Set b.image = '<img src="https://asdf.com/image.png">'

I know I have the node code set up correctly in the app as it currently returns the string "<img src="https://asdf.com/image.png">" instead of the intended image.

Please let me know if there is a standard method for displaying images using Neo4j.

Many Thanks,

Keith

1 REPLY 1

Neo4j mandate is to store and queries data.
It is not to interpret the data beyond the primitives string, boolean, Number ( Integer & Float ), Data and spacial point.

You can use an actual byte array has a value too if you want to store the actual binary image itself but in both cases bytes or URL String Neo4j will not interpret it as a picture for you.

In your case,yYou have to use an node.js library for that who will take the property value and interpret it as a picture.