Special

Introducing the “Welcome to Xojo” Bundle!

New to Xojo and looking for guidance? We've put together a terrific bundle to welcome you! Xojo Bundle

This bundle includes six back issues of the magazine -- all of year 21 in printed book and digital formats -- plus a one-year subscription (beginning with 22.1) so you'll be learning all about Xojo for the next year. It's the perfect way to get started programming with Xojo. And you save as much as $35 over the non-bundle price!

This offer is only available for a limited time as supplies are limited, so hurry today and order this special bundle before the offer goes away!

Article Preview


Buy Now

Issue 10.1 ('Reporting')
Instant purchase and download via GumRoad!

COLUMN

Large Database Objects

Working with pictures in databases

Issue: 10.1 (November/December 2011)
Author Bio: Paul Lefebvre has been using Real Studio for 9 years. His company, LogicalVue Software, specializes in creating database applications using Real Studio. Paul also runs the RBDevZone community site and is a founding member of the Association of REALbasic Professionals.
Article Description: No description available.
Article Length (in bytes): 4,312
Starting Page Number: 79
Article Number: 10011
Related Link(s): None

Excerpt of article text...

Typically most database data consists of simple types such as INTEGER, TEXT, FLOAT, DATETIME and BOOLEAN. But sometimes you might have a need to store other things in your database, such as pictures, files or some other binary data. Databases have support for this using a column type called a BLOB, for binary large object.

Using a BLOB with Real Studio

To access a BLOB using real studio you have to use a RecordSet or database record. You cannot directly use SQL.

If you are working with a Picture, you can use the PictureValue property of the DatabaseField on a RecordSet like this:

Dim myDB As REALSQLDatabase

...End of Excerpt. Please purchase the magazine to read the full article.