This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
using Microsoft.WindowsAzure.Storage.Auth; | |
using Microsoft.WindowsAzure.Storage.Blob; | |
... | |
private async void OnTakePhotoClick(object sender, RoutedEventArgs e) | |
{ | |
//Take photo or video |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private async void OnTakePhotoClick(object sender, RoutedEventArgs e) | |
{ | |
//Take photo or video | |
CameraCaptureUI cameraCapture = new CameraCaptureUI(); | |
StorageFile media = await cameraCapture.CaptureFileAsync(CameraCaptureUIMode.PhotoOrVideo); | |
//add todo item to trigger insert operation which returns item.SAS | |
var todoItem = new TodoItem() { | |
ContainerName = "mypics", | |
ResourceName= media.Name, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class TodoItem | |
{ | |
public int Id { get; set; } | |
[DataMember(Name = "text")] | |
public string Text { get; set; } | |
[DataMember(Name = "complete")] | |
public bool Complete { get; set; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private async void OnTakePhotoClick(object sender, RoutedEventArgs e) | |
{ | |
//Take photo or video | |
CameraCaptureUI cameraCapture = new CameraCaptureUI(); | |
StorageFile media = await cameraCapture.CaptureFileAsync(CameraCaptureUIMode.PhotoOrVideo); | |
//add todo item | |
var todoItem = new TodoItem() { Text = "test image", ImageName = media.Name }; | |
await todoTable.InsertAsync(todoItem); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private async void OnTakePhotoClick(object sender, RoutedEventArgs e) | |
{ | |
//Take photo or video | |
CameraCaptureUI cameraCapture = new CameraCaptureUI(); | |
StorageFile media = await cameraCapture.CaptureFileAsync(CameraCaptureUIMode.PhotoOrVideo); | |
//add todo item to trigger insert operation which returns item.SAS | |
var todoItem = new TodoItem() { Text = "test image", ImageName = media.Name }; | |
await todoTable.InsertAsync(todoItem); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Windows.Media.Capture; | |
private async void OnTakePhotoClick(object sender, RoutedEventArgs e) | |
{ | |
//Take photo or video | |
CameraCaptureUI cameraCapture = new CameraCaptureUI(); | |
StorageFile media = await cameraCapture.CaptureFileAsync(CameraCaptureUIMode.PhotoOrVideo); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
</Grid> | |
... | |
<Page.BottomAppBar> | |
<AppBar> | |
<Button Name="btnTakePhoto" Style="{StaticResource PhotoAppBarButtonStyle}" | |
Click="OnTakePhotoClick" /> | |
</AppBar> | |
</Page.BottomAppBar> | |
... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Simple example of Generating a Windows Azure blob SAS in Node created using the guidance at http://msdn.microsoft.com/en-us/library/windowsazure/hh508996.aspx. | |
//If your environment has access to the Windows Azure SDK for Node (https://github.com/WindowsAzure/azure-sdk-for-node) then you should use that instead. | |
function insert(item, user, request) { | |
var accountName = '<Your Account Name>'; | |
var accountKey = '<Your Account Key>'; | |
//Note: this code assumes the container already exists in blob storage. | |
// If you wish to dynamically create the container then implement guidance here - http://msdn.microsoft.com/en-us/library/windowsazure/dd179468.aspx |
NewerOlder