How to add the Image into Server using WebAPI by hitting Xamarin Code. And Image or video will preview in the Xamarin Forms.
Kindly let me know.
Attached sample page of that
you need to return Image URL path of image like "http://192.168.1.13:8093/Images/cat_dairy.png" from WebAPI.
then simply bind in xamarin forms.
Yes, if you want to display images from some network, you need get the url path of the image, for example, you can do like this:
<Image Source="https://aka.ms/campus.jpg" />
For more about this,, you can check: https://docs.microsoft.com/en-us/xamarin/xamarin-forms/user-interface/images?tabs=windows#download-images
For how to display video, you can check the official document: Playing a Web video .
And there is a sample , you can check it here: https://docs.microsoft.com/en-us/samples/xamarin/xamarin-forms-samples/customrenderers-videoplayerdemos/
Xamarin forums are migrating to a new home on Microsoft Q&A!
We invite you to post new questions in the Xamarin forums’ new home on Microsoft Q&A!
For more information, please refer to this sticky post.
Hi @Vasanthakumar06 , have you resolved your problem?
Xamarin Inc., as a wholly-owned Microsoft subsidiary acting as a separate legal entity, adheres to the Microsoft Privacy Statement: Privacy & cookies