Click here to Skip to main content
15,904,926 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hey guyz!, So I am developing a xamarin app and I want to upload images as a byte array to a php script for processing because, I want to first resize the image from its path and then upload. I know I could use webclient class, but it has no method for byte array upload only file path
Posted
Comments
Sinisa Hajnal 28-Oct-15 3:47am    
What have you tried? And why is file path wrong if you need to upload an image?
Richard MacCutchan 28-Oct-15 5:29am    
A file is a byte array. Just save the image to a file and upload it that way.

You can use one of the UploadData methods[^].
 
Share this answer
 
Comments
CPallini 28-Oct-15 7:43am    
5.
Thanks very much everybody. But I found a way, using the httpclient class in the system.net.http namespace ...It gave me option of not only file, but also basic string data with a single upload.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900