O'Reilly logo

Windows® Phone 8 Unleashed by Daniel Vaughan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

A Simple Photo Upload Share Application

This section looks at building a photo Share application that takes an image and uploads it as a byte array to a WCF service. The example app is located in the WPUnleashed.ShareExample project in the downloadable sample code. The WCF service that the app communicates with is located in the WPUnleashed.Web project.

When your app is selected from the Share menu in the built-in picture viewer, your app is launched and the main page of your app has its query string populated with a string identifier named FileId. Extras applications use Token as their identifier; Share applications use FileId.

The FileId value is used to retrieve the image from the Pictures Hub in the same manner as an Extras application retrieves ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required