My question is simple. Can I use the cellphone' camera to take a photo (without storage in cellphone's external memory) and send it to online database.
Yes, not only camera but also you can use the gallery for selecting the picture and send it to the database.
Please go to the following url for opening camera and gallery:https://github.com/jamesmontemagno/MediaPlugin
Please use the quote option when giving reply to comment. It will give notification to the commented guy, otherwise, we don't know about your reply.
For sending a picture to the database use the following link:https://github.com/HoussemDellai/UploadFileToServer
Hi, Sreeee! Thanks for the reply, but I followed every step to use MediaPlugin and it did not work. I guess it's because I'm using .NET Standard 2.0 and FormsAppCompatActivity in Droid.
I want to use the camera because my application needs a real photo for more security, but if it is not. I will try to take the photo, store it on the device and then send it to the server.
The problem now is how to do it since the error I have with MediaPlugin is;
"Can not get the location of the file, It is most likely that the information of the file provider is not configured in your Android manifest file. about how to configure it in your project "
And I do not know why, since the android manifest is already configured exactly as the example of jamesmontemagno says.
In addition to having tried all the solutions presented in StackOverflow and XamarinForums
Xamarin Inc., as a wholly-owned Microsoft subsidiary acting as a separate legal entity, adheres to the Microsoft Privacy Statement: Privacy & cookies