Click here to Skip to main content
13,289,242 members (49,355 online)
Rate this:
Please Sign up or sign in to vote.
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 27-Sep-12 2:04am
Sandeep Mewara 27-Sep-12 12:17pm
Tried anything? Where are you stuck?
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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.
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

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

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy |
Web04 | 2.8.171207.1 | Last Updated 27 Sep 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100