Base64 image upload in Web but not upload in device Cordova
<p>I'm developing an app and trying to upload an image in base64 to my server. Testing the code via web it works perfectly! And when I convert the image in base64 to File, it returns me the following object:</p>

<p><a href="https://i.stack.imgur.com/Z4MaH.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Z4MaH.jpg" alt="enter image description here"></a></p>

<p>But when I try to make the same thing in my mobile app running on an Android device, the same code creates to me the following File object:</p>

<p><a href="https://i.stack.imgur.com/IWVKW.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IWVKW.jpg" alt="enter image description here"></a></p>

<p>What is happening? I call the function to convert my base64 image to File as this:</p>

<pre><code>var blob = new Blob([photoBase64], {type: 'image/png'});
var filePhoto = new File([blob], "employeePhoto.png");
</code></pre>

<p>In first image (which worked) I was running on web browser. 
In second image (not worked) I was running on Android app. 
It is the same code... </p>

<p>It appears that File constructor have different behavior in web browser and Android app. I am not understanding this. Passing the parameters to File constructor in the same order create different File objects (as the described on images).</p>