[File Plugin] Saving file results in errorcode 5 / Encoding error

[File Plugin] Saving file results in errorcode 5 / Encoding error

  
Forge Component
(3)
Published on 16 Oct by Pedro Oliveira
3 votes
Published on 16 Oct by Pedro Oliveira

I'm trying to capture an image, video or audio in a mobile app. Whenever I'm using the SaveFile action, I'm getting an encoding error (code 5).

Hi Wouter,

Sometime we get error bcoz of missing cardova-plugin-file.

https://cordova.apache.org/docs/en/latest/reference/cordova-plugin-file/index.html

https://success.outsystems.com/Documentation/10/Extensibility_and_Integration/Mobile_Plugins/Using_Cordova_Plugins

Please check for cardova or if possible share ur oml for checking more.

Regards

Shoeb

Hi Shoeb,

It has nothing to do with the plugin missing. The plugin is there, I can debug it, but at the point where I'm running the SaveFile client action, the javascript returns an encoding error. No matter what I do.

Thanks!

Hi Wouter,

Can u please provide your oml or any sample oml if possible so we can go through...


Regards

Shoeb

Hi Shoeb,

Find attached an example. Thanks in advance :)

Cheers, Wouter

Hi, same issue here.

Did you find a solution to this situation?


Cheers,

Guilherme

Solution

Try to remove spaces and special characters from the filename. It worked for me.

Solution