Code Monkey home page Code Monkey logo

Comments (3)

yakirp avatar yakirp commented on August 26, 2024

Hi @horsejockey

Could you please share with me the execution flow which reproduces the issue you referred to?

Looking forward to your response.

Best,
Yakir

from cloudinary_android.

horsejockey avatar horsejockey commented on August 26, 2024

Sorry it took me a bit. I was using Kotlin but I don't think that should matter. I was trying to upload a byteArray or java byte[] instead of just passing the uri. I debugged it a bit and ran into two different issues both having to do with the parsed.getHost() in PayloadFactory not working well with the base64 encoded byte[]. You should be able to grab any image and try to upload it as a byte[] to reproduce. I definitely had the issue with jpeg encoded images and webm images.

Here were my upload settings which are now working fine when I just pass the uri of the image.

MediaManager
            .get()
            .upload(bytes)
            .options(options)
            .unsigned("event-apps")
            .constrain(TimeWindow.immediate())
            .policy(
                UploadPolicy
                    .Builder()
                    .maxRetries(0)
                    .networkPolicy(UploadPolicy.NetworkType.ANY)
                    .build()
            ).callback(object : UploadCallback { Callback Methods }

from cloudinary_android.

yakirp avatar yakirp commented on August 26, 2024

Hi @horsejockey ,

We fixed this issue in our latest SDK version, could you please make sure you are using it and let me know if it works for you?

Thanks,
Yakir

from cloudinary_android.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.