Uploading images to azure blob storage with windows phone 7 - windows-phone-7

I have been trying for the longest while to find a way to upload images using windows azure blob storage with windows phone. I tried using windows azure storage client for windows phone but that does not seem to be working any more. I also tried about 2 other nuget packages and I also tried a web service that will handle the upload for but that didn't work out well as I wasn't completely how I should connect the web service to my phone app. I tried also uploading it using windows azure mobile service. Could anyone give me some pointers on how I should go about getting this to work?
Problem with windows azure storage client for windows phone
Install-Package Phone.Storage -Version 1.0.1
Attempting to resolve dependency 'SilverlightActivator (≥ 1.0.3)'.
'Phone.Storage 1.0.1' already installed.
ProjectName already has a reference to 'Phone.Storage 1.0.1'.
But no reference added to visible in reference folder
Problem with mobile services
Tried this: http://www.windowsazure.com/en-us/develop/mobile/tutorials/upload-images-to-storage-dotnet/
but could not find a Storage client library for Windows phone 7

You need to obtain a shared access signature (SAS) from your blob storage to be able to upload.
You can do so using your own web service that uses the storage client SDK to get the SAS and send it back to the phone, or you can use the Mobile Service for the same purpose.
http://www.nickharris.net/index.php/2012/11/12/how-to-upload-an-image-to-windows-azure-storage-using-mobile-services/

Related

Does an online Android application generated by GeneXus connect to the database?

I'm using GeneXus X Evolution 3 and I want to install it in a production environment.
The web app works well, but the android one does not. It fails when starting.
Does the android app connect to the database hosted in the server? If so, how do I need to configure ports or what do I need to set in the datastore properties?
The native android application does not access your database. It accesses REST services hosted in your applications server and those connect to the database.
So what you have to set is the Services URL property.
If you have problems accessing the REST services, you may have some issues related to URL Rewrite or other common issues.

Upload multiple images to azure from windows phone

Is it possible to upload multiple images(In my case 4) to azure blob storage from windows phone 8 app.I am using Windows Azure storage library,Im able to upload a single image.Is there an option to upload multiple images?
The recommended solution would be to create a Web API service that you would call from your Windows Phone 8 application and send the picture to the Web API that would handle uploading your picture to a blob storage.

Windows phone 7 accesses SQL Azure

I'm a beginner of WP7, and I spent some time looking for solutions not only can consume
but also Insert/Update/Delete the data stored in SQL Azure.
I found a good tutorial here:
http://samidipbasu.com/2011/07/24/updating-odata-data-source-from-wp7-part-1/
However, the SQL Azure Lab no longer accepts registration.
http://www.microsoft.com/en-us/sqlazurelabs/labs/odata.aspx
So, is there any other solution for directly accessing SQL Azure in the cloud without setting up a server?
Thank you.
have a look at Windows Azure Mobile Service, that should cover the server side.
you can then access the REST-based API from Windows Phone, see Using Azure Mobile Services with Windows Phone

Windows phone 7 - how to connect to remote services

I want to connect to remote machine using windows phone 7.5. Is there any inbuilt classes in .net for this.
For regular desktop application same can be done using ServiceController class. I am looking for the similar class for windows phone application.
ServiceController is used to control state of services on local or remote machine.
WP apps don't have a way of controlling remote or local services.
You would have to write SOAP or REST API for managing services and then connect WP app to those, but do make sure it is secured properly - you don't want to give access to service control to everyone.

Debugging a Windows CE application which uses a Microsoft Azure service

This question has probably less to do with actual programming and more to do with environment setup.
I'm developing an application for a Windows CE device, which will use a service hosted in Microsoft Azure. Obviously, this is all under development, and the service itself has not yet been uploaded to Azure. So I'm using the emulators provided by MS to deploy the service locally. Also, I don't think uploading the service to Azure just to debug it is a good idea, as that could net us a bill for Azure we don't yet want to pay.
Also, please note, I'm using VS2008 for the Windows CE project and VS2010 for the Azure project (thank you MS for dropping support for mobile devices -_-).
The problem is, the service seems to be accessible only via 127.0.0.1 or localhost, and if I physically connect a Windows CE device or use an emulated one, it becomes a new entity on the network, and cannot access that service any more.
How can I debug my Window CE application and have it see the service, whilst still being able to debug the service itself?
You are correct, the development fabric (the compute emulator that allows you to build an azure application and debug it locally) is only meant for local development. There are some hacks that allow you to get around that, but I wouldn't recommend it.
My recommendation would be to spin up the service in a more traditional hosting environment, at least in these early stages. You can define it as a web app just as you always would have, and get it functioning. Then, when you know its mostly complete, create a cloud service project and do an add existing to bring your web app into the cloud service solution. Once in, its a simple matter to add the web app as a web role.
From there, you can complete testing of the service in both the local and hosted azure environments as needed. This allows you to minimize your development costs while still leveraging the power of the cloud. As an upside, you also have done most of the basic work to ensure your service is compatible with multiple deployment scenarios giving you a greater degree of choice for its final production state.
OK, I don't know if this was intentional, or if I found one of the mentioned hacks, but I saw that IIS hosts the Azure site I created on port 5100, and the binding for this site is *, so it accepts all connections.
Using this I could access the service from my emulator, and I could still debug all Azure related stuff.

Resources