Exception in image file upload using Java
Hi,
I am trying to upload an image to cloudinary using java program. I am getting below exception exception
Exception in thread "main" java.lang.AbstractMethodError: com.cloudinary.strategies.AbstractUploaderStrategy.callApi(Ljava/lang/String;Ljava/util/Map;Ljava/util/Map;Ljava/lang/Object;)Ljava/util/Map;
at com.cloudinary.Uploader.callApi(Uploader.java:22)
at com.cloudinary.Uploader.upload(Uploader.java:55)
at com.happiestminds.ImageResize.main(ImageResize.java:32)
I am referring this https://cloudinary.com/documentation/java_image_upload
File file = new File("my_image.jpg"); Map uploadResult = cloudinary.uploader().upload(file, ObjectUtils.emptyMap());
Can you please let me know am I missing any required library ?
Thanks,
Bhavesh
-
Hey Bhavesh,
In order to better understand the issue, I need some more information. Can you please share with me the following?
* The full code (including how you initialized the cloudinary object)
* How you added the Cloudinary SDK to your project? with Maven?
I'm looking forward to your response.
Thanks,
Yakir
0
Post is closed for comments.
Comments
1 comment