Click here to Skip to main content
15,881,870 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I'm work in project in wp7 c# and i need to save and retrieve some online image in database usind web service
how i can do that ?
Thank you
Posted
Comments
Sandeep Mewara 27-Sep-12 12:17pm    
Tried anything? Where are you stuck?

First create web service with operations like SaveImage and RetrieveImage.
Then add web service proxy class to your wp7 app and use it to communicate with web service.
 
Share this answer
 
Using Visual Studio, it is really easy to work with webservices.
Create a new webservice project.
Here you create two methods: voi UploadImage(byte[] data, string filePath) and byte[] DownloadImage(string filePath)

The create your Client.
To use your webservice right-click on references -> Add Service Reference
Now you can add your service and give it a name.

Now you can initialize a webservice-object. With this you can access your methods.

Have a look at a tutorial like this one. There are many out in the web.
It is really easy to learn and use.

Hope I could help.
Greets, Markus
 
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