Closed ouryhamdalaye closed 3 years ago
Same here with iOS!
What are you expecting to be in the rawData?
I was expecting the file to be there otherwise how do i get the file in order to store it ? The "file" entey in the array give me only the path to the file . Could you give us more precisions ? Thanks for your job
I did not create this plugin, but looking at the code, rawData
never contains the file data.
If you look at the code: https://github.com/jibon57/nativescript-mediafilepicker/blob/master/src/mediafilepicker.android.ts
It looks like it always contains a native java object, in some cases a java.io.File
, which can be used to read the raw file data.
I would say the best way would be to load the file with NativeScript based on the path that is returned: https://docs.nativescript.org/ns-framework-modules/file-system#file-methods
Yes I used this way, by using filesystem I was able to load the image using File.fromPath(theimagepath).
Its a 2 step solution but there is no choice unfortunately.
Appreciated your short reply.
When I run the snippet code :
I get an empty rawData object
Platform Android version 7.0
Am I missing something here ?