Expand my Community achievements bar.

SOLVED

Physical file location of Digital content

Avatar

Level 2

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

1 Accepted Solution

Avatar

Correct answer by
Level 10

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

View solution in original post

5 Replies

Avatar

Correct answer by
Level 10

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

Avatar

Level 2

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.

Avatar

Level 10

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.

Avatar

Employee

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

Avatar

Level 5

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