Physical file location of Digital content | Community
Skip to main content
srikanthbiradar
Level 2
Nov 3, 2015 1:18 PM UTC
Solved

Physical file location of Digital content

Hi Friends,

Could you please let me know where are the DAM assets saved in the file system ? 

For example: I checkin an image say apple_pie.jpeg in DAM(localhost), where is that image file saved in my file system ?

Thanks

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Lokesh_Shivalingaiah
Lokesh_ShivalingaiahAccepted solution
Level 10
Nov 3, 2015 1:32 PM UTC

It will be stored as binary. You cannot see it as a physical file

5 replies

RashidJorvee
Level 4
Sep 29, 2017 10:12 AM UTC

All content of DAM stored at path /content/dam in CRXDE.

Translate
Employee
Nov 3, 2015 11:44 PM UTC

Srikanth Biradar wrote...

Hi Friends,

Could you please let me know where are the DAM assets saved in the file system ? 

For example: I checkin an image say apple_pie.jpeg in DAM(localhost), where is that image file saved in my file system ?

Thanks

 

 

Hi,

If you want to use a file object, you would need to download the file and then use the downloaded file object [1], unless you can change your code to do it all in memory?

Regards,

Opkar

[1] http://stackoverflow.com/questions/8324862/how-to-create-file-object-from-url-object

Translate
edubey
Level 10
Nov 3, 2015 3:51 PM UTC

When you have file at you local file system, you are able to make it work because its file protocol, but when you have file in aem, to read it you need to follow http protocol. For you it might be localhost host, but for code it an IP / HOST which can be accessed via http protocol. Now if you modify your code to read pdf from url  then I guess you can proceed.

Translate
srikanthbiradar
Level 2
Nov 3, 2015 2:51 PM UTC

Thanks Lokesh.

I have few pdfs in DAM. I want to upload them to a cloud. For that, I have to create a file object and use that object in the corresponding method that uploads the physical files to that cloud. I have to pass the file's location as argument to File class. I am passing for example: http://localhost:4508/content/dam/geometrixx/documents/GeoCube_Datasheet.pdf but that does't work.

Existing code works perfectly fine if I give any file from my local file system.

Translate
Lokesh_Shivalingaiah
Lokesh_ShivalingaiahAccepted solution
Level 10
Nov 3, 2015 1:32 PM UTC

It will be stored as binary. You cannot see it as a physical file

Translate