Git Product home page Git Product logo

Comments (4)

roysG avatar roysG commented on July 16, 2024

yes, i also want to know that.

from phonegap-base64.

hazemhagrass avatar hazemhagrass commented on July 16, 2024

I'm afraid I'm not understanding you very well, can you post a sample snippet or something?

from phonegap-base64.

jmbello avatar jmbello commented on July 16, 2024

Hi.
What I think they are talking about is this:
line 83 you have this imgStr = "data:image/*;charset=utf-8;base64," + imgStr;

I'm guessing this only works for image, when i convert some other formats (like audio or video, they use 3gp or mp3/mp4/wav) their mime type will be also data:image.

I have this issue in my project right now, i need to send files (image, audio and video) from my android app to a web server, so, in order to do this i use your plugin to get base64 string and this string convert to blob and finally send it. But when my server receive it cannot convert back to that proper format because of the "hardcoded" mime type.

from phonegap-base64.

hazemhagrass avatar hazemhagrass commented on July 16, 2024

Sorry for beign too late. Images only are supported

from phonegap-base64.

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.