简体   繁体   中英

How to upload a photo to a webservice using Xamarin Forms

I am trying to upload a photo to my data base using Xamarin forms. I have the image. How would I use HTTP Post to push it up to the web service?

Thanks

First: write code to covert your image to base64 string. Second: Pass this string to your web service using HTTP Post. third: in your web service write code to convert this base64 string to image. fourth: store that image in your server directory

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM