Giter Site home page Giter Site logo

Take a photo! about postcardapp HOT 6 CLOSED

yaronyg avatar yaronyg commented on August 22, 2024
Take a photo!

from postcardapp.

Comments (6)

deadlyfingers avatar deadlyfingers commented on August 22, 2024

How it might look -
postcardapp2-photos

from postcardapp.

yaronyg avatar yaronyg commented on August 22, 2024

That is cool! Although I was more excited when I thought you had already implemented it. Took me a second to realize it was a mock. :)

from postcardapp.

deadlyfingers avatar deadlyfingers commented on August 22, 2024

Cordova returns base64 encoded imageData which we can store as a PouchDB attachment - http://pouchdb.com/guides/attachments.html or as a Blob.
Does anyone have a preference?

from postcardapp.

yaronyg avatar yaronyg commented on August 22, 2024

There is no Cordova API that will return a buffer? I suppose that makes sense as the Cordova bridge requires everything to be a string. Sigh.. oh well. From a "helping Thali" perspective it would be best if we stored it as an attachment. This would force us to finally exercise those APIs.

from postcardapp.

deadlyfingers avatar deadlyfingers commented on August 22, 2024

I have small images being saved as an attachment in PouchDB using base64. But having trouble with saving large images on PouchDB 413 (Request Entity Too Large)

  • UPDATE: fix app.use( bodyParser.urlencoded({ extended: true, limit: '10mb' }) );

from postcardapp.

deadlyfingers avatar deadlyfingers commented on August 22, 2024

iframe issues: So I want to call Cordova commands from web app client on the mobile but I reckon I need to do some additional wiring to get working it with JXCore / Express app running inside an iframe...
Tried to get 'parent' of iframe to get access to Cordova functions but this failed due to different origins 'file://' and 'localhost://'.

OPTIONS :

  1. Cross Domain Messaging - post message event using parent.postMessage('data','*'); to trigger Cordova function in main window - "index.js" then post message back to iframe to trigger callback. https://developer.mozilla.org/en-US/docs/Web/API/Window/postMessage
  2. Or do we really need to run everything inside an iframe? Potentially we can drop ejs requirement.
  • UPDATE: tried removing iframe but ran into various problems - mostly broken file links so going with option 1 which works

from postcardapp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.