SAPUI5 - Storing Images? - image

I have a SAPUI5 application running in SAP Cloud Platform.
This is also deployed as an offline mobile app.
It'll be storing a LOT of images, (e.g. photo from the camera etc).
My initial thought was to store them separately, on our servers, instead of holding the images in the online/offline DB.
However, as an offline user, who could be taking pictures while offline, we need to have some method of synching back to the online DB...
if that's the case are we forced into storing the images in the SAP DB, so that the online/offline DBs can be synched?

Related

How does AJAX requests work exactly?

I had in mind to make a website that pulls data from steam statistics to show how many players are currently playing a specific game. Is this possible or does it have to be an actual api?
If you're planning on this website only ever being a platform that displays the information you're pulling from the Steam API when users access your site, then no, you don't necessarily have to create a public-facing API.
However, if you're creating this application with the idea that other applications are going to programmatically retrieve the data you're displaying on the site, then yes, you should create an API that allows other applications to consume your data.
The best way to do the latter would be to create an independent service that consumes data from the Steam API and transforms it, then makes it available publicly (with authentication if deemed necessary). This API would then be consumed by a client that you create (your website that displays the data) as well as any other application that could make use of the data.

User profile picture organization on Google App Engine

I am very new to storing pictures on a web server. Currently I am using Google App Engine's Cloud SQL for my database to house all of my user's information (username, password, etc). I was reading about how most people DON'T store pictures in a database.
I was looking at Cloud Storage or Cloud Datastore. I think the route people are taking is to use the Cloud Storage. If that is the case I need help with organizing the storage of the profile pics (user defined) for saving, retrieval, modification and deletion.
My thoughts are:
To save a profile pic: Save the .jpg to //profile pic/profile_pic.jpg on the Cloud Storage
I would have /1/profile pics/profile_pic.jpg, /2/profile pics/profile_pic.jpg, /3/profile pic/profile_pic.jpg where the would correspond with the primary key in the database.
Am I on the right track? Is there a standard way to do this that I don't know of?
Any help will be greatly appreciated!!!!
There are two different approaches. You described one of them, and it's perfectly fine.
The alternative solution is to save an image in a bucket and remember its key in a database.
The best solution by far is to use the Blobstore to save your images and store only the key of your image (and possibly url) in your cloud sql database. If you need sample code, let me know.

Create Azure VM from image created under different subscription

Is there a way to take a backup of a VM (image capture following the sysprep method) and then make that image in the gallery visible to someone under their subscription. For example, I create a VM, archive it off to the image gallery, then my colleague comes along and wants to create a VM from that image (the colleague cannot be a co-administrator on my subscription).
Alternatively, is there just a way to move the VM to a different subscription without archving it off and recreating?
Have found the following but this is a bit convoluted and requires purchase of third party software
http://gauravmantri.com/2012/07/04/how-to-move-windows-azure-virtual-machines-from-one-subscription-to-another/
Many thanks
Richard Clarke
I don't think you can use images created in one subscription to create VMs in another subscription. You would need to copy those images into your subscription. Since images are nothing but Page Blobs in your storage account, you would need to copy them into a storage account in your target subscription, create images off of them and then deploy VMs. I'm not aware of any other way around it.
Regarding your comment about requires purchase of third party software, that's not really true. You don't have to buy 3rd party software. The main thing is to move your VHDs (which are page blobs) from one subscription to another. Do take a look at Step 1 - Copy Blobs in that blog post. It has a link to console application with source code that you can use to copy blob across. I used Cloud Storage Studio to explore my blob storage. You can use any other storage explorer to check the contents of blob storage (including Windows Azure portal). Cerebrata recently released a free blob storage explorer which you may want to check out: http://www.cerebrata.com/labs/azure-explorer.
Unfortunately that's the only way that I know of to create Azure VMs from images created under different subscriptions.
This is now possible using Azure Shared Image Galleries
Edit:
#Shanky the subscription ID is part of the resource ID for the image version. It will look like this:
/subscriptions/$subscriptionId/resourceGroups/$resourceGroup/providers/Microsoft.Compute/galleries/$galleryName/images/$galleryImageDefinition/versions/$imageVersion
You pass that as the ImageReference.id when creating a VM. It's similar to creating a VM from a marketplace image but you just pass the ImageReference ID instead of the publisher/sku/etc.

MS Sync Toolkit how to handle huge initial download

We're using Microsoft Sync Framework Toolkit to allow some iOS devices to synchronize their SQLite local storage with a central SQL Server database over an OData service (just like the sample does).
The problem is that the central database is quite big (more than 500 MB) and that the customer want to initially replicate all his content on their devices.
So we configured the service to sync all tables but it crashes the first time a device tries to sync (OutOfMemoryException).
How should we design/configure the service to manage such a situation? Setting filters doesn't seem to fit our needs since we need all the data.
I should add that we tried to configure SetDownloadBatchSize with no luck. Maybe there is something to configure on the client as well?

Photo and Video hosting on a shared server?

I need to have several videos and photos on my website.
Primarily videos will range to more than a 100, and photos might be more than 10000.
Since i am using a shared server hosting, i cant have enough space to upload them on my server nor will the performance graph be any good.
Hence i decided, i can upload the videos on YouTube and embed them in my web site.
However the problem is with the photographs. Which would be the best photostorage web service which can
A) Have a Web API
B) Would have no need to create a badge or in any way not make it obvious that the photo is from some other source.
C) Unlimited Storage
D) High performance retrieval.
picasa fit all your requirements except unlimited storage. but you have a lot of space and can buy extra storage for little money
I don't know if you want a cloud based service or a self-hosted service?
If you want to self hosted an image hosting service, then you can check this project, ImageS3, web admin console, REST api, and of course, no usage limitation on APIs.
If you wish to use the cloud based image hosting service, then you can use imgur.com, imageshack.com or www.imgix.com.

Resources