Click here to Skip to main content
11,484,402 members (65,512 online)
Rate this: bad
good
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 2:04am
Comments
Sandeep Mewara at 27-Sep-12 12:17pm
   
Tried anything? Where are you stuck?
Rate this: bad
good
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.
  Permalink  
Rate this: bad
good
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
  Permalink  

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

  Print Answers RSS
0 Maciej Los 190
1 Sergey Alexandrovich Kryukov 170
2 Raje_ 155
3 OriginalGriff 147
4 Mehdi Gholam 120
0 Sergey Alexandrovich Kryukov 8,484
1 OriginalGriff 7,948
2 Sascha Lefèvre 3,199
3 Maciej Los 2,681
4 Richard Deeming 2,370


Advertise | Privacy | Mobile
Web01 | 2.8.150520.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