hazemhagrass / phonegap-base64

Plugin to get base64 encoding of any IMAGE, Base64 can be retrieved for any file for android, however for iOS images only supported
19 stars 42 forks source link

Paths that contain spaces cause conversion problems. #36

Closed eoussama closed 3 years ago

eoussama commented 4 years ago

No indicative errors are printed but the base64 return value is always an empty string.

The conversion works flawlessly with paths like file:///path/to/file.ext but not with file:///path/to/file with spaces.ext

eoussama commented 4 years ago

I hope a fix is considered regarding this problem.

eoussama commented 3 years ago

I guess it's never gonna get resolved unless Android does something about this, for the time being, it's better to URI encode your file names and then decode them when you need them.