I need to upload a .PDF
and/or .JPG
file through a communication API with a POST
method from Xamarin Forms with .NET Standard. For this I will be supported by a plugin that can open the camera and the gallery in this case I occupy Xam.Plugin.Media
, but in the case of PDFs I can not open the file manager of the phone (where the files are saved)
The questions are:
In what plugin can I help to send PDF files? (That allows the user to select a file from the file manager independent of the operating system)
To send the PDF file through the API REST, do I need to transform it to an array of bytes? (I do the same in the case of photography)