Comments (1)
Hi there @TomislavHorvat1, the error you're encountering indicates that there is a type mismatch when passing the Transformation
object as an option in the Cloudinary upload request.
To resolve this issue, you can try the following steps:
- Check that you have imported the correct
Transformation
class from the Cloudinary SDK. It should becom.cloudinary.Transformation
. - Modify the
val transformation
declaration to remove the generic type parameter. Simply useval transformation = Transformation()
. - When setting the
TRANSFORMATION
option in the upload request, convert thetransformation
object to a string using thetoString()
method. Update the option line as follows:.option(TRANSFORMATION, transformation.toString())
Here's the updated code snippet for reference:
val transformation = Transformation()
MediaManager.get().upload(uri)
.option(TRANSFORMATION, transformation.toString())
.option(SIGNATURE, photoSignature.signature)
.option(TIMESTAMP, photoSignature.timestamp)
.option(PUBLIC_ID, photoSignature.publicId)
.option(TAG, tag)
.callback(object : UploadCallback {
// ...
})
.dispatch()
Please give this a try, and let me know if you encounter any further issues.
from cloudinary_android.
Related Issues (20)
- Remove android:fullBackupContent from AndroidManifest.xml HOT 5
- Url generated by MediaManager.get().url() is not valid HOT 1
- Deprecated reference to gradle compile in README HOT 1
- * What went wrong: A problem occurred configuring project ':app'. > SDK location not found. Define location with an ANDROID_SDK_ROOT environment variable or by setting the sdk.dir path in your project's local properties file at 'C:\xxxx-master\xxxx-master\android\local.properties'. HOT 3
- Web API calls behave differently on iOS and Android (and cURL) HOT 4
- ANRs from com.evernote.android.job.JobBootReceiver HOT 4
- Transformation job error on Android 5.0 HOT 3
- Migrate away from any JCenter dependencies HOT 8
- Bobyhwupload HOT 2
- Targeting S+ (version 31 and above) HOT 12
- How do you create a Transformation object in Kotlin? HOT 1
- ANR in Android App for evernote library HOT 4
- Data cannot occupy more than 10240 bytes when serialized HOT 5
- java.lang.RuntimeException: General Error on signed upload with chunk_size option HOT 26
- Targeting S+ (version 31 and above) requires that one of FLAG_IMMUTABLE or FLAG_MUTABLE HOT 2
- Question: How do I download files and save them to the file system? HOT 2
- Is `v2.5.1` a faulty release? HOT 1
- How to upload multiple images one by one and get results HOT 4
- exif tags not honored when applying image preprocessing chain HOT 7
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cloudinary_android.