Ask Your Question

Adding Image field Split HSQLDB Database [closed]

asked 2018-12-26 00:46:22 +0200

Mycle gravatar image

updated 2020-08-02 17:33:49 +0200

Alex Kemp gravatar image

After much frustration with crashing and errors it seems the issue was a slow laptop due to available processing resources. I used the Split_HSQLDB_2.3.2_Wizard and now things are stable and much quicker. An issue for me now is adding an image field to a table. The field type "image [LONGVARBINARY] is not available in the split DB table.

With the embedded DB forms, right clicking the form control linked to the image [LONGVARBINARY] datafield would open a dialog box for adding an image.

How can I now achieve this with the split DB table, what field type and form control should I use.



edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by Alex Kemp
close date 2020-08-02 17:34:01.235644

2 Answers

Sort by » oldest newest most voted

answered 2018-12-26 01:23:08 +0200

Ratslinger gravatar image


In a split HSQLDB, use a BLOB field type. You still use an image control on the form. Personally have found linked images to be much faster in loading.

If you intend to have a number of images in the DB, you may want to consider placing these in a related table even though it may be just one per record. It can save some loading time. Embedded images can cause headaches. Best if images are under 3mb.

edit flag offensive delete link more

answered 2018-12-26 01:59:58 +0200

Mycle gravatar image

Thanks Again! will try it out now, the table for images sounds interesting, have never thought of doing it that way! How would one store the images in the table?


edit flag offensive delete link more


It would just be a separate table related back to the master. Three fields: ID, Link to master & Blob field. On the form it would become a sub form.

Now a reason for doing this. When you open a form it actually loads the first x number of records. Depending on the records this can be say 40 to 70 records. Now imagine each of these contains a BLOB image. The load time increases dramatically. With the image in a related table, each image is only loaded when the master record is loaded thus saving load time & actually memory.

Ratslinger gravatar imageRatslinger ( 2018-12-26 02:05:00 +0200 )edit

Got it, so helpful!



Mycle gravatar imageMycle ( 2018-12-26 02:23:39 +0200 )edit

Just a note. You can also just link to an image instead of embedding in DB. This save DB space and loads images faster. See this post -> How to insert a link to an odb database to display an image.

This of course makes it a bit more difficult to move since the images are tied to a specific location. But you can place images within folder make it a bit easier. It is all relative with images involved.

Ratslinger gravatar imageRatslinger ( 2018-12-26 03:45:22 +0200 )edit

Question Tools

1 follower


Asked: 2018-12-26 00:46:22 +0200

Seen: 75 times

Last updated: Dec 26 '18