I'm having trouble reading images from my mobile app (Xamarin Forms)
I get the image path (string) but can't save it as a Byte Array
Any help would be appreciated!
Because a Bitmap is a different datatype for each platform, you have to do the work at the platform project, not the shared/PCL/Agnostic project.
Beyond that its normal C# code to convert from bitmap to bytehttps://www.google.com/search?q=xamarin+image+to+byte&ie=utf-8&oe=utf-8&client=firefox-b-1-ab
If you are just trying to display an image from your device you can write some platform specific code that reads it into a stream or a bytearray that you can handle inside of your core project.
Read this image as Stream
Copy this stream to MemoryStream
Cast this MemoryStream to byteArray (ToArray())
Xamarin Inc., as a wholly-owned Microsoft subsidiary acting as a separate legal entity, adheres to the Microsoft Privacy Statement: Privacy & cookies