Statement
: Identify the Binary Location on file system
Environment
: AEM 6.3
Solution
:
1.
Go
to this path http://localhost:4502/crx/de/index.jsp#/content/dam/projects/we-retail/cover/jcr%3Acontent/metadata
2.
And
Navigate to this path in crxde search : /content/dam/projects/we-retail/cover/jcr:content/metadata
3. Check the value of dam:sha1 and
that shows the binary location on file system Dam:sha1 =a81372af7d4d9ab856cad6e293ea48e653f0e278
4. Whereas first letter a813 indicates
datastore location on the file system
where - \crx-quickstart\repository\datastore\0a\81\13
and you can observe the asset
located under with file type .file : 0a81135558804df12feb78bd994c0f4416aad830
5.
Now
change the file extension to jpg i.e 0a81135558804df12feb78bd994c0f4416aad830.jpg
6.
Open
in the Phot viewer or Photoshop.
7.
Post
seeing the image and revert the image back to the original file extension i.e remove the .jpg extension.
Hi,
ReplyDeleteHow can we delete a file from DAM programmatically?
Please help me on this.