title: Neo4j-Store and retrieve images with cypher queries
body: <p>What is the best way to store images (binary arrays) in Neo4j?
  I stored them as binary arrays but then how can I retrieve them with Cypher queries?
  I have this query in which picture has been stored as binary arrays, but it seems there is an exception.</p>
  
  <pre><code>Match (n:`employees`) where employeeid='1' return n.picture
  </code></pre>
  
  <p>This is the full stack trace: (image size is 12Kb)</p>
  
  <pre><code>org.neo4j.rest.graphdb.RestResultException: Unhandled array type: class [B at
  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)
  </code></pre>