52202

Image files sync in Azure Mobile Apps for Android

Question:

Sorry if this question does not contain any code. I am building an Android app using Azure Mobile Apps. I am successfully following the sample with <a href="https://docs.microsoft.com/en-us/azure/app-service-mobile/app-service-mobile-android-get-started-offline-data" rel="nofollow">the TodoList </a>. The sample describes the case for data sync, but what if I want to add support for images sync? Do I have to save the image files as blob inside the database? Do I treat files as any other record in the db, or is there a better way? Do I have to use a service other than "Mobile Apps"?

I've also read the following instructions about image sync, but they don't seem to target Android:

<a href="https://azure.microsoft.com/en-us/resources/samples/app-service-mobile-dotnet-todo-list-files/" rel="nofollow">Azure Mobile Apps - structured data sync with files</a>

Answer1:

<blockquote>

I've also read the following instructions about image sync, but they don't seem to target Android:

</blockquote>

The assemblies used for file sync is a prerelease version. I suggest you implement the file sync feature for your Android device by yourself currently. To implement the sync feature, I suggest you create a table to store the file log. The table definition should be like this.

+-------------------+ | Column Name | +-------------------+ | File name | | Operation type | | Modified date | +-------------------+

After created or deleted the file on your device, we need to add a log record to the file log table. To sync the files, we need to compare the differences between local data and remote data on this table to sync the files.

Recommend

  • gulp: passing dependent task return stream as parameter
  • readyRead() signal of QextSerialPort (QIODevice) is not being called fast enough
  • java.lang.IndexOutOfBoundsException occuring on ArrayList
  • C#: Import/Export Settings into/from a File
  • Salesforce Different WSDL files and when to use
  • Specifying Castle WCF Integration Facility Endpoint Behavior per Endpoint
  • How can I set a binding to a Combox in a UserControl?
  • How can I enlarge video fullscreen without the affected interface project in as3?
  • How can I extract results of aggregate queries in slick?
  • Needing to do .toArray() to get output of mongodb .find() on key name not value
  • AJAX Html Editor Extender upload image appearing blank
  • HTTP/2 streams vs HTTP/1.1 connections
  • Hardware Accelerated Image Scaling in windows using C++
  • Python urlparse: small issue
  • Syntax for setting draggablecursor property in google maps api
  • FileReader+canvas image loading problem
  • MongoDB in PHP using aggregate to group by _id is null not working
  • Update CALayer sublayers immediately
  • Is there a amazon webstore API for customers?
  • Can I make an Android app that runs a web view in Chrome 39?
  • In LanguageTool, how do you create a dictionary and use it for spell checking?
  • Timeout for blocking function call, i.e., how to stop waiting for user input after X seconds?
  • GridView Sorting works once only
  • Circular dependency while pushing http interceptor
  • jqPlot EnhancedLegendRenderer plugin does not toggle series for Pie charts
  • How do I rollback to a specific git commit
  • Is there a mandatory requirement to switch app.yaml?
  • How to get icons for entities from eclipse?
  • InvalidAuthenticityToken between subdomains when logging in with Rails app
  • How to include full .NET prerequisite for Wix Burn installer
  • SQL merge duplicate rows and join values that are different
  • Angular 2 constructor injection vs direct access
  • Java static initializers and reflection
  • Android Google Maps API OnLocationChanged only called once
  • Turn off referential integrity in Derby? is it possible?
  • LevelDB C iterator
  • python draw pie shapes with colour filled
  • Can't mass-assign protected attributes when import data from csv file
  • Busy indicator not showing up in wpf window [duplicate]
  • UserPrincipal.Current returns apppool on IIS