I am currently working on an UWP project where I need to take a photo using the device's camera before uploading it to my online service which is hosted on Azure.
How could I achieve this?
To upload photos to Azure, it's best to use Azure Blob Storage. Here's a link to the Quickstart guide as well as some sample code.
Related
I am developing a background service with .Net, that will upload some videos to the azure media services platform and I would like to add some custom metadata to each video I will upload. I have google for some time, and I found that there is no possibility to upload an asset. How to Add Metadata to assets in Azure Media Services? but having a look to the Azure dashboard I found, that selecting the properties of an asset I am able to add custom metadata manually. My question is, anybody have any idea how can I add this custom fields thougth through the azure media services API. Thanks in advance.
You would be able to add such metadata using Azure Storage APIs (and not via Media Services APIs). See this for example.
How can I convert emf (image/x-emf) files to png without using "MetaFile class" which seems to not work in Azure Web Apps. It works on self hosted sites.
I don't seem to find any alternative.
Source Code:
https://github.com/KeesCBakker/KeesTalksTech-Utility-Pack/tree/master/KeesTalksTech-Utility-Pack/KeesTalksTech.Utilities/Graphics
Here is someone who seems to have similar error:
Calling Chart.SaveImage() in Azure WebApp results in GDI+ Exception for ChartImageFormat.EMF only
Azure Web App runs in sandbox, some GDI+ components do not have permission. Please refer to this article for more information about Azure Web App sandbox. For this scenario, please try to use cloud service or azure VM.
I have been looking all over the place but I'm having a hard time finding out how to upload a file to Dropbox from an Azure webjob. Is this even possible? I will be creating an excel file and a text document in my webjob that i will need to place in a certain Dropbox account (which i have access) folder.
According to your requirement, I assumed that you could follow the possible approaches below to achieve your purpose.
1.Call Dropbox API in your WebJob
You could leverage Dropbox.NET which is a portable Class Library for you to easily integrate Dropbox into your WebJob.
2. ApiHub extension for Azure WebJob
You could leverage Microsoft.Azure.WebJobs.Extensions.ApiHub which is a pre-release version for you to integrate Dropbox with WebJob. For more details, you could refer to Azure WebJobs extensions sample.
Alternatively (if you don't want to deal with DropBox API) you can build a logic app being triggered for example by HTTP request from your web job as DropBox connector exists:
https://learn.microsoft.com/en-us/azure/connectors/connectors-create-api-dropbox
I have been struggling to find some resources that help explain, how we use the File Storage with Web App Service.
There are ways to use it with the old Web Roles, Check here (Using the Azure File Service in your Cloud Services (Web and Worker Roles)).
However, there is NO OnStart() methods in "Azure Web Service".
If you're looking for mapping a drive to your Azure File Service share in your Web App using SMB protocol, then I don't think you can do as of today.
What you could do is make use of Azure File Service REST API and manipulate shares and files that way. You don't have to actually use the REST API per se; you can simply use the latest version of .Net Storage Client library which is a wrapper over REST API.
Please see this link for more details on how to use this using Storage Client library: https://azure.microsoft.com/en-in/documentation/articles/storage-dotnet-how-to-use-files/.
Yes, you can. In Linux Web Apps and Windows Containers Web Apps only.
In the Web App, under Application Settings you will find Mount storage (Preview) section where you can mount Storage account. Works like a charm.
Is it possible to upload or download .doc, .pdf or any image file to azure mobile services storage. If possible can anyone please provide me same samples.
if by storage you meant, Azure Blob Storage, yes.
here's some links :
Upload images to Windows Azure Storage by using Mobile Services
Upload File to Windows Azure Blob Storage using Windows Azure Mobile Services