Example Dart app for photo upload, download, and gallery?

534 views
Skip to first unread message

solarwirelessmile

unread,
Jul 17, 2013, 10:41:25 AM7/17/13
to mi...@dartlang.org
Has anyone seen an example Dart app for uploading, downloading and presenting a gallery of documents? Particularly jpeg files? Perhaps something that might work with one of the existing photo sharing websites? Thanks for any pointers here.

Seth Ladd

unread,
Jul 17, 2013, 1:10:31 PM7/17/13
to General Dart Discussion
Hi,

Thanks for the question. I'm not aware of a sample app that does that, but luckily Dart works with HTML5 APIs so if you see JavaScript tutorials that deal with this, it's probably not too hard to convert to Dart. The browser functionality is the same.

Assuming you find a photo service with a public API for managing photos, and that service uses HTTP and JSON for its API, you can use Dart's HttpRequest class and its JSON library.

Good luck!
Seth


On Wed, Jul 17, 2013 at 7:41 AM, solarwirelessmile <bdel...@gmail.com> wrote:
Has anyone seen an example Dart app for uploading, downloading and presenting a gallery of documents? Particularly jpeg files? Perhaps something that might work with one of the existing photo sharing websites? Thanks for any pointers here.

--
For other discussions, see https://groups.google.com/a/dartlang.org/
 
For HOWTO questions, visit http://stackoverflow.com/tags/dart
 
To file a bug report or feature request, go to http://www.dartbug.com/new
 
 

solarwirelessmile

unread,
Jul 17, 2013, 1:18:32 PM7/17/13
to mi...@dartlang.org
Thanks ... I'll work up an example and let you know how I do.

solarwirelessmile

unread,
Aug 8, 2013, 6:59:51 PM8/8/13
to mi...@dartlang.org
I was able to get an experimental prototype up and running for this - thanks to DART. It's essentially a group photo sharing app. 

A photo mosaic is used as the map for navigating a large collection of images. Users are able to click on the mosaic's "pixels" and view/retrieve the images used to produce that portion of the mosaic. There may be simpler approaches, but here is my list of components from development to deployment:
  • DART Web App - accesses / requests images / navigates 20,000+ image mosaic
  • DART Server App - middleware interacting with MongoDB; handles image requests from browser, tells client where to find images related to a region of the mosaic
  • DART Utility Programs - various small command line programs to process files, edit names, manipulate directories etc.
A number of other components run alongside DART to round out the system:
  • osaic 2.0 (Python) makes mosaics, slightly customized to output image index tracking location of component images
  • WebApp Framework (bottlePy) - uploads images to server, returns images to client, produces gallery of images
  • Webserver (CherryPy) - runs behind bottlePy to handle mainstream web transactions
  • Database (MongoDB) via mongo_dart - built 20,000+ index and image description
  • Image Store - Individual images were stored in directory structures on Ubuntu
The DART environment has been great for building and debugging this kind of networked/web app. It's evident how it keeps getting better. DART - the language, tools, and libraries - worked great and the performance is surprisingly fast. Thanks for DART!


On Wednesday, July 17, 2013 1:10:31 PM UTC-4, Seth Ladd wrote:
Reply all
Reply to author
Forward
0 new messages