Click here to Skip to main content
11,639,593 members (60,080 online)
Rate this: bad
Please Sign up or sign in to vote.
See more: C#
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 1:04am
Sandeep Mewara at 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
0 Suvendu Shekhar Giri 330
1 Sergey Alexandrovich Kryukov 244
2 CPallini 177
3 F-ES Sitecore 170
4 himanshu agarwal 167
0 OriginalGriff 9,081
1 Sergey Alexandrovich Kryukov 8,812
2 Mika Wendelius 7,027
3 Suvendu Shekhar Giri 2,650
4 F-ES Sitecore 2,548

Advertise | Privacy | Mobile
Web03 | 2.8.150731.1 | Last Updated 27 Sep 2012
Copyright © CodeProject, 1999-2015
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