User profile picture organization on Google App Engine - image

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.

Related

how to move Application Insights customEvents table to postgres database?

This is for a project on Bot Framework Composer (not SDK, so i'm using built in telemetry export settings).
I am looking for the best way to store event logs from bot conversations for analysis. From what I've researched, the method recommended is going through Application Insights, which I activated and tested. The data I require seems to be all captured in table customEvents.
The issue is I need to be able manipulate the data for analysis. But in Application Insights it's read only (and possibly purge via API). I need to be able to add tables, edit text, etc. I have a lot of experice with postgreSQL so that's my first choice for bot log storage.
So my question is, what is the efficient way to get the customEvents data table that is in application insights to a postgres database? From what I see, application insights only exports to azure storage? But that does not have a database option. And if I understand some of the pipelines suggested, they copy data to storage, and then copy to a database. Isn't that a lot of storage cost, as same data will be in application insights, storageBlobs AND postgres?
What is the best pipeline? The goal is to have non-redundant pipeline that transfers event data that is in 'customEvents' to a postgres table with same columns.
(If there is a way to redirect data that goes to customEvents in application isights directly to postgres table that would be perfect too. )
There is no such to redirect data from application insights directly into postgres table.
The first solution is continuous export to azure storage as you know. Storage blob does not cost very much and you can clear the old data periodically to reduce the cost.
Another way is to use the application insights query api. To do that, you need to write your own logic to query the custom events from application insights, then insert them into your DB by your code.

Is there a way to access Google My Business Data in BigQuery?

We are working on a project where we want to access all the information from our numerous Google My Business locations. We would like to access that GMB information with our Google Analytics data and have it automatically refresh for a dashboard. We have looked into using Super Metrics and loading the data in that way, but we want to avoid upgrading our Super Metrics account.
Has anyone encountered a similar issue, and if so, what solution did/would you implement?
I think you have two solutions here :
Pay supermetrics or any self managed data loader (stitch, fivetran etc)
Code your own ETL
For the moment paying supermetrics, but some alternatives we are looking at are Keboola, Dataddo or building into airbyte, may it will come soon.

Is it possible to share Image in Google cloud without granting roles/compute.imageUser role?

Sharing image in Google Cloud Platform after some time testing, not exactly at the time of Instance Image creation.
I've already read a lot of Google Documentation such as https://cloud.google.com/compute/docs/images/sharing-images-across-projects. But here explains, that images can be shared based on granting roles and it will be shared directly at the time of creation if member has appropriate role. I would like to do some tests and if tests passed only in this case share image with other members.
Could you please share with me any information if you have already faced with such problem?
Thanks.

SAPUI5 - Storing Images?

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?

Backing up Isolated storage

Some of my users have asked to have their data backed up (off the phone). I'm using Isolated storage to store their data. I'm wondering if there is a way that I can somehow get that information package it up and send it to a off phone location.
Is there a way to do this? What is the best way to accomplish this?
I don't know if skydrive will handle backing up the type of data you have but there is an API now.
http://msdn.microsoft.com/en-us/windowslive/default.aspx
Examples on GitHub:
https://github.com/liveservices/LiveSDK
Someone posted a question on how to backup a SQLCE database to skydrive and there didn't seem to be an API to backup random things only specific things like Pictures or Music. I'm sure something for that could be figured out by storing some data from a browser and watching the traffic in Fiddler.
edit: side note, theres an AWS beta API for WP7 now.
If you don't know what the data is, you can search for it like this:
Find Existing Files and Directories in Isolated Storage
Then you can use SkyDrive to save users data onto it.
You can use the Live SDK.

Resources