Saving images into Neo4J

database, neo4j

Solution

Do you actually need to store the entire image, or can you store a reference id to the image which exists on disk?

I ask this question because most likely you're going to store it as a byte array in the DB, and if you're never actually going to use the byte array for your analysis, then you may as well just store a reference.

If you are using it for comparison, say duplicate prevention, you can always store the MD5 or something.

Why do you need to store the image in the DB?

Problem

As i have to use Neo4J in one of my project i tried to get some ideas on it. It stores the values in key-value pair manner. But i coudn't understand one thing that how to store images ?? In some situations we store the URL of the corresponding images in RDBMS. But in Graph databases what are the tricks ? Please someone provide me some good articles link or answer clearly. Thanks.!

Original source