[File Plugin] Failed to parse JSON request content

[File Plugin] Failed to parse JSON request content

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

Hello,

I'm using the "GetFileDataFromUri" from the plugin to get the binary file of the videos that I store on the local storage of the phone, but can't create a record on the database with the binary returned, giving the following error:


Failed to parse JSON request content:

The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or an illegal character among the padding characters. 


Anyone had the same problem/have some workaround? Thanks.



Solution

Andre Paula wrote:

Hello,

I'm using the "GetFileDataFromUri" from the plugin to get the binary file of the videos that I store on the local storage of the phone, but can't create a record on the database with the binary returned, giving the following error:


Failed to parse JSON request content:

The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or an illegal character among the padding characters. 


Anyone had the same problem/have some workaround? Thanks.



Already solved the problem. In android I had to give full permissions to the application, it didn't fecth the file otherwise.


Solution