Note that there are some explanatory texts on larger screens.

plurals
  1. PODrive SDK: Binary Blobs in Realtime Documents
    primarykey
    data
    text
    <p>I'm working on a web-based <strong>productivity application</strong>. So I figure Google Drive SDK, in particular the <strong>Drive Realtime API</strong>, would be a good fit for this application.</p> <p>I imagine that I should store documents as <a href="https://developers.google.com/drive/integrate-create#create_a_shortcut_to_a_file" rel="nofollow">shortcut files</a> with attached <a href="https://developers.google.com/drive/realtime/reference/gapi.drive.realtime.Model" rel="nofollow">realtime models</a>, for the following reasons.</p> <ul> <li>I would like to use the Realtime API</li> <li>The documentation says shortcut files provides same user experiences as builtin apps</li> <li>There's no standardized format for the kind of documents my app makes (So serializing them and letting people sync them to their desktop makes little sense).</li> </ul> <p>However, I need to embed images (binary blobs). I can't store these in the realtime model, because it's not designed for large blobs. Please correct me if there's a way to embed binary blobs in to a realtime model.</p> <p><strong>So how do I associate binary blobs with a realtime model attached to a shortcut file?</strong></p> <p>The only approach I can think of is to store the blobs, in blobstore or the <em>hidden appdata folder</em>. And this would require me to do a cron job to garbage collect blobs, in case the shortcut file they are used in is deleted.</p> <ul> <li><strong>Am I missing any obvious solution?</strong></li> <li><strong>Would it be appropriate use of the hidden appdata folder?</strong> (or would users delete this data and be surprised that all images inside their files, that they didn't delete, have disappeared)</li> <li><strong>Is there any way to be notified when a shortcut file is deleted?</strong></li> <li><strong>How often should I garbage collect blobs?</strong> (ie. check if the shortcut file they belong to have been deleted)</li> <li><strong>Can I trust that the owner of a shortcut file is never changed?</strong> (if this can happen, how I'm I supposed to garbage collect binary blobs?)</li> </ul> <p>I would like to store the binary blobs on Drive (in the hidden appdata folder). This way users wouldn't be billed for drive storage for image storage specific to my app. I imagine that it would seem quite arbitrary to users if they have purchased Drive storage, and then have to purchase app specific storage for my app.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload