Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

ImageDelivery unusable in code

Avatar

Avatar
Ignite 1
Level 1
akshayp20237522
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Ignite 1
Give Back
View profile

Avatar
Ignite 1
Level 1
akshayp20237522
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Ignite 1
Give Back
View profile
akshayp20237522
Level 1

17-10-2019

According to the documentation here

DynamicMediaHelper ("The Adobe AEM Quickstart and Web Application.")

the isDynamicMediaEnabled method is now deprecated and I wanted to use  the ImageDelivery.isEnabled() to get the same experience and from the depfinder I see I can use the following POM dependency to get hold of the ImageDelivery class.

<dependency>

     <artifactId>cq-delivery-api</artifactId>

     <version>1.2.8</version>

     <groupId>com.adobe.cq.dam</groupId>

     <scope>provided</scope>

</dependency>

but the dependency is probably not publicly available and and am unable to use it in my code, is there a workaround in place?

Replies

Avatar

Avatar
Ignite 1
MVP
Ankur_Khare
MVP

Likes

152 likes

Total Posts

363 posts

Correct Reply

56 solutions
Top badges earned
Ignite 1
Validate 10
Validate 1
Give Back 50
Give Back 5
View profile

Avatar
Ignite 1
MVP
Ankur_Khare
MVP

Likes

152 likes

Total Posts

363 posts

Correct Reply

56 solutions
Top badges earned
Ignite 1
Validate 10
Validate 1
Give Back 50
Give Back 5
View profile
Ankur_Khare
MVP

18-10-2019

Did you check in uber jar?

Try adding proper uber jar as per aem version

Avatar

Avatar
Ignite 1
Level 1
akshayp20237522
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Ignite 1
Give Back
View profile

Avatar
Ignite 1
Level 1
akshayp20237522
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Ignite 1
Give Back
View profile
akshayp20237522
Level 1

18-10-2019

1845418_pastedImage_0.png

The Uber jar doesn't have that package i.e com.adobe.cq.dam.dm.delivery.api.ImageDelivery

Avatar

Avatar
Ignite 1
MVP
Ankur_Khare
MVP

Likes

152 likes

Total Posts

363 posts

Correct Reply

56 solutions
Top badges earned
Ignite 1
Validate 10
Validate 1
Give Back 50
Give Back 5
View profile

Avatar
Ignite 1
MVP
Ankur_Khare
MVP

Likes

152 likes

Total Posts

363 posts

Correct Reply

56 solutions
Top badges earned
Ignite 1
Validate 10
Validate 1
Give Back 50
Give Back 5
View profile
Ankur_Khare
MVP

18-10-2019

Then I would suggest we shouldn't be using this feature as this is deprecated and in future versions might be removed, better to look for some other solutions.

You can make this scenario work but I would suggest that's not the correct way.

Avatar

Avatar
Ignite 1
Employee
aemmarc
Employee

Likes

184 likes

Total Posts

243 posts

Correct Reply

92 solutions
Top badges earned
Ignite 1
Give Back 50
Give Back 5
Give Back 3
Give Back 25
View profile

Avatar
Ignite 1
Employee
aemmarc
Employee

Likes

184 likes

Total Posts

243 posts

Correct Reply

92 solutions
Top badges earned
Ignite 1
Give Back 50
Give Back 5
Give Back 3
Give Back 25
View profile
aemmarc
Employee

18-10-2019

This build of the Uber Jar does though :

https://repo.adobe.com/nexus/content/repositories/releases/com/adobe/aem/uber-jar/6.5.0.0/uber-jar-6...

There are quite a few deprecations in the 6.5 UberJar.  You can use this build as a stop-gap until you can refactor out the deprecated dependencies.

Avatar

Avatar
Ignite 1
Level 1
akshayp20237522
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Ignite 1
Give Back
View profile

Avatar
Ignite 1
Level 1
akshayp20237522
Level 1

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Ignite 1
Give Back
View profile
akshayp20237522
Level 1

20-10-2019

I tried this but it did not work.