DatabaseLink`
DatabaseLink`
SQLBinary
SQLBinary[data]
represents raw binary data that can be stored in a database.
更多信息和选项
- To use SQLBinary, you first need to load DatabaseLink using Needs["DatabaseLink`"].
范例
基本范例 (1)
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.
Create a table with a column to store binary data:
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: