Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 77050

Xamarin.Forms PCL (not shared) app + photos + Azure Blob Storage = ???

$
0
0

OK, after weeks of researching, reading and trying all sorts of methods, I've come to the conclusion that I'm going to have to use the HTTP Client to interface with the Azure Blob Storage REST API. This is not ideal as I would like to work with a method that requests the keys from Azure Mobile Services, but I digress. My app works with images either taken by the camera or selected from the gallery. My current profile is PCL 4.5 Profile 7. I believe this is the leanest profile I can work with. I've given up on trying to support Windows Phone 8.1, which is a shame because that happens to be my primary phone. :) My current test device is a Samsung Galaxy 3, running version 19 of the Android API.

I've tried working with the Preview versions of WindowsAzure.Storage, but I can't get the using statements to resolve. I assume it has something to do with my PCL Profile. Since so many of the tutorials use the WindowsAzure.Storage client this is not an option, unless someone has any ideas.

I've tried working with Azure Mobile Services as well. My thought was that I could at least retrieve the storage keys as I've seen done in some tutorials, but that won't work either. The service installs and the using statements and code resolve, but the app hangs when the client is called. I am using Xamarin Insights to capture and report errors. From what I can tell the .ext.dll portion of Azure Mobile Services is missing. I guess I could also call the Azure Mobile Services API using the HTTP Client, but from what I've read, the authentication piece is somewhat difficult. I will still try this method as I will most assuredly learn something new.

I'm waiting to hear back from the folks who make this component, but I just realized/learned today that components don't install into PCL projects, so that's not going to work, either. I've been under the impression ever since I started working with Xamarin that components would work with my project.

https://components.xamarin.com/view/DataNuage.Azure.Blob

I've only been developing for less than a year and working with Xamarin for a little over 6 months. Hopefully, this will start a good discussion and perhaps help someone else who is having the same problems.

If anyone has any suggestions, I'm all ears. In the meantime, I've started working with the Blob Storage Rest API tutorials that I've found, but the authentication appears to be a bit tricky. There's also not as much out there, but I'm willing to try and learn in the process. I'm also considering building an Web API to handle image uploads and insertion into Azure Blob Storage.

Hope this helps.


Viewing all articles
Browse latest Browse all 77050

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>