Closed cmrockwell closed 4 years ago
For assets or other binaries, I have typically created a content package instead of using the builders as described: https://github.com/icfnext/prosper#content-import
Thank you! Content Import looks very useful, and will consider using it next time.
For now, serlializing the data to String seems to work as well { 'file' { 'jcr:content'("jcr:data": imageFile.bytes as String) } }
I am testing an OSGI Service, which returns an image path given a page resource.
Here is the setup
It gives an error when setting { 'file' { 'jcr:content'("jcr:data": imageFile.bytes ) } }
Do you have any advice for building Spock test JCR data that would simulate an image resource with binary data under the page or fileReference from the DAM?