You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Use the image-source modules fromNativeSource(image) method passing in the image from the promise result to get an image-source. Then use toBase64String method on the image-source instance.
Just in case anyone is banging their head on the wall - the above code by bradmartin worked for me on android perfectly, however iOS in Nativescript Vue needed the x.toBase64String("PNG") to be lowercase as such: x.toBase64String('png')
Activity
bradmartin commentedon Feb 22, 2017
Use the
image-source
modules fromNativeSource(image) method passing in the image from the promise result to get an image-source. Then use toBase64String method on the image-source instance.Let me know if that helps 😄
dzfweb commentedon Feb 22, 2017
Thank you.
It works.
👍
steve-79 commentedon Sep 9, 2020
Just in case anyone is banging their head on the wall - the above code by bradmartin worked for me on android perfectly, however iOS in Nativescript Vue needed the x.toBase64String("PNG") to be lowercase as such: x.toBase64String('png')