If you find that the examples in this section do not work as shown, you may need to install or restore the example database with the "DatabaseLink`DatabaseExamples`" package, as described in Using the Example Databases.
Open a connection:
Create a table with a column to store binary data:
Generate an image:
Represent the image as a string in GIF format:
Display the first few characters of the string:
Convert the string into a list of bytes wrapped in SQLBinary: