Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Saving images into Neo4J

Tags:

database

neo4j

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.!

like image 949
Aatif Avatar asked Mar 20 '13 13:03

Aatif


1 Answers

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?

like image 101
Nicholas Avatar answered Nov 16 '22 16:11

Nicholas