DDH Software, LLC Making a big world smaller






Return to Knowledgebase Home
Question: How can I embed a photo into my Android database?
Product: Article Number: 370Creation Date: 10/14/2010
Answer:
The HanDBase database format does not have a field type for storing pictures/photos.  But you can store a reference to an image and display it in a custom form.  A form has a picture control type and you can assign the photo's data source to be a text field.  That text field can contain the file name of the image, and if the image is stored in the HanDBase/Images folder, it will be displayed on the form.  (Please Note: the forms designer is an optional add-on purchase).

Longer term, we do have a field type called External which is designed to let us add support for data such as photos stored externally.  
Using this field type it's possible for us to create a 'field type' that would support linking to a photo that is stored somewhere on the device.  In fact, on some other platforms like iPhone, iPad, Palm OS and Windows Mobile, this is already available in some form.

At launch, we don't have any External field types designed for HanDBase for Android, but hope to add one for the linking to and displaying images in the near future.  

This article has been viewed 7695 times.

Return to Knowledgebase Home