Please be aware that the content in SAP SQL Anywhere Forum will be migrated to the SAP Community in August and this forum will be retired.

Just wondering if anyone's used or created image comparison capabilities for use from SQL Anywhere blobs. For example, if I have a long binary cell with a JPG, PNG or other image in it, is there a function like HASH that could produce a value that "describes" the image. One tricky piece is that there are several variants of "describe" - I'm certainly interested in standard metadata (image attributes - size, compression, etc.; content - photographer, location, data/time, etc.) but I'm also interested in certain "content" or "embedded" metadata, as in "this is a picture of horse", or "the predominant/average colour of this picture is brown with a white splotch in the bottom right" (as in Google Image, and other image search facilities). For reference, there's a good description of what another database engine provides, with lots of background about image metadata at - currently I have no interest in DICOM metadata (medical images), but others might.

asked 11 Oct '13, 11:14

DougMWat's gravatar image

accept rate: 0%

SQL Anywhere has a hash function - surprisingly it is called hash ! See the documentation for more information.

Regarding meta data, your will most likely need to have separate columns (or a 'meta data' table) to contain this information.

You could consider writing an external store procedure (or use an external environment) that would take the image and automatically extract some the meta data for you.


permanent link

answered 11 Oct '13, 11:24

Mark%20Culp's gravatar image

Mark Culp
accept rate: 41%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 11 Oct '13, 11:14

question was seen: 2,082 times

last updated: 11 Oct '13, 11:24