sql-string. Saving file to SQL-server
^file.sql-string[]
Returns the string, which can be used in SQL-query. Allows saving file in database.
Attention
:
currenty only MySQL-server is supported
.
Example
$name[image.gif]
$file[^
file::load
[$name]]
^
connect
[
connect string
]{
^void:sql{
insert into images (name, bytes) values ('
$name
', '
^file.sql-string[]
')
}
}
Copyright © 19972025 Art. Lebedev Studio |
http://www.artlebedev.com
Last updated: 31.03.2004