Neo4j-Store and retrieve images with cypher queries -


what best way store images (binary arrays) in neo4j? stored them binary arrays how can retrieve them cypher queries? have query in picture has been stored binary arrays, seems there exception.

match (n:`employees`) employeeid='1' return n.picture 

this full stack trace: (image size 12kb)

org.neo4j.rest.graphdb.restresultexception: unhandled array type: class [b @ unsupportedoperationexception    org.neo4j.server.helpers.propertytypedispatcher.dispatcharray(propertytypedispatcher.java:720)    org.neo4j.server.helpers.propertytypedispatcher.dispatchnumberarray(propertytypedispatcher.java:715)    org.neo4j.server.helpers.propertytypedispatcher.dispatchbytearrayproperty(propertytypedispatcher.java:675)    org.neo4j.server.helpers.propertytypedispatcher.dispatchbytearrayproperty(propertytypedispatcher.java:280)    org.neo4j.server.helpers.propertytypedispatcher.dispatchprimitivearray(propertytypedispatcher.java:135)    org.neo4j.server.helpers.propertytypedispatcher.dispatch(propertytypedispatcher.java:122)    org.neo4j.server.rest.repr.cypherresultrepresentation.getrepresentation(cypherresultrepresentation.java:185)    org.neo4j.server.rest.repr.cypherresultrepresentation.access$000(cypherresultrepresentation.java:38)    org.neo4j.server.rest.repr.cypherresultrepresentation$2$1.underlyingobjecttoobject(cypherresultrepresentation.java:103)    org.neo4j.server.rest.repr.cypherresultrepresentation$2$1.underlyingobjecttoobject(cypherresultrepresentation.java:99)    org.neo4j.helpers.collection.iterablewrapper$myiteratorwrapper.underlyingobjecttoobject(iterablewrapper.java:57)    org.neo4j.helpers.collection.iteratorwrapper.next(iteratorwrapper.java:47)    org.neo4j.server.rest.repr.listrepresentation.serialize(listrepresentation.java:64)    org.neo4j.server.rest.repr.serializer.serialize(serializer.java:75)    org.neo4j.server.rest.repr.listserializer.addlist(listserializer.java:56)    org.neo4j.server.rest.repr.listrepresentation.addto(listrepresentation.java:79)    org.neo4j.server.rest.repr.listrepresentation.serialize(listrepresentation.java:65)    org.neo4j.server.rest.repr.serializer.serialize(serializer.java:75)    org.neo4j.server.rest.repr.mappingserializer.putlist(mappingserializer.java:61)    org.neo4j.server.rest.repr.cypherresultrepresentation.serialize(cypherresultrepresentation.java:83)    org.neo4j.server.rest.repr.mappingrepresentation.serialize(mappingrepresentation.java:41)    org.neo4j.server.rest.repr.outputformat$1.write(outputformat.java:160)    org.neo4j.server.rest.security.securityfilter.dofilter(securityfilter.java:112)    java.lang.thread.run(unknown source) 

is actual cypher statement using? if missed type n.empoyeeid="1"

yes bytes ok (as []byte) neo4j api docs

but no gridfs or similar storage if blobs big recommend using s3 or store on disk , pointer in neo node. again should work.


Comments

Popular posts from this blog

c# - Unity IoC Lifetime per HttpRequest for UserStore -

Change the color of an oval at click in Java AWT -

I am trying to solve the error message 'incompatible ranks 0 and 1 in assignment' in a fortran 95 program. -