Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7409355
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T06:04:18+00:00 2026-05-29T06:04:18+00:00

We have installed OpenDataKit (ODK) Aggregate and we are using a MySQL Database. I

  • 0

We have installed OpenDataKit (ODK) Aggregate and we are using a MySQL Database. I can see the data inside the _PHOTO_BIN, _PHOTO_BN, and PHOTO_REF tables – but how do I read this data and display the image? I see in the _PHOTO_BN table there is a field named UNROOTED_FILE_PATH which contains a .jpg filename, but I don’t know if this can actually be used to access the image?

Thank you.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T06:04:18+00:00Added an answer on May 29, 2026 at 6:04 am

    This answer was give on the ODK Google Groups site

    The easiest way to access the images is through the ODK Aggregate URL for
    accessing attachments.

    The database tables are structured so that unbounded-size images can be
    stored in the database. If your image size is under 1 MB, it is stored in
    one data record, but if you have larger image files (or longer streaming
    videos), they are split across multiple blob records, and writing the logic
    to reconstruct them will be error-prone.

    The ODK Aggregate URL for, e.g., the GeoTagger form on
    opendatakit.appspot.com, looks like:
    http://opendatakit.appspot.com/view/binaryData?blobKey=geo_tagger_v2%…

    If you want a small thumbnail, specify previewImage=true (as above).

    If you want to download it as an attachment (or access the original
    filename), you can also specify as_attachment=true, in which case it will
    supply the filename as originally uploaded.

    The blobKey identifies the image. As with all URLs, the parameters are
    URLEncoded which makes them very ugly. The URLDecoded blobKey looks like:

    geo_tagger_v2[@version=null and 
    @uiVersion=null]/geotagger[@key=uuid:f6454ba6-2485-426f-8e1a-8981e463e6fe]/ Image
    

    This is an XPath-style naming for the image element in the Xform. It
    identifies the form id: get_tagger_v2, the version and uiVersion values
    (from the attributes on the Xform’s top-level element), the name of the
    top-level element in the form (geotagger), the primary key for the
    submission being referenced (uuid:f6454ba6-2485-426f-8e1a-8981e463e6fe) and
    the XPath within the form to the image. In this case, the image (field
    name Image) is immediately underneath the top-level element in the form.

    If you had repeat groups, you would have to specify the ordinal (1..n) of
    the repeat group. So for the first repeat group, you would have:

    …/repeatElement[@ordinal=1]/Image

    and for the 5th repeat, you would specify:

    …/repeatElement[@ordinal=5]/Image

    Mitch

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have installed mySQL using sudo apt-get install mySQL-server then i have installed libmysqlclient15-dev
I have installed Clang by using apt-get in Ubuntu, and I can successfully compile
I have installed wxWidgets 2.9.3 on Ubuntu 10.10 using ../configure --with-gtk I am using
I have installed rvm (mutiuser option) and ruby using rvm install on my test
I have installed nodejs and mysql(also the work bench) I am building a server
I have installed zend server on my local system.I created one project folder using
I have installed usb driver, selected the android device's debugging mode but i can't
I have installed mysql Query browser for creating tables/ views/ procedures (In Ubuntu) But
I have installed Apache on my server (I wasn't using Apache) and special characters
I have installed RockMongo http://code.google.com/p/rock-php/ to manage my mongoDB database. This is installed in

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.