How can I INSERT and RETRIEVE with SQL language, an HTML document from a BLOB field into db2 on ibmI ??
I put the testing.html inside fylesystem but I don’t know if this way is correct or if I can also use a file into my local PC.
I tried this code from STRSQL without success:
INSERT INTO LIB/FILE VALUES('','C','000001',BLOBFROMFILE(/PATH/testing.html))
Is it possible to enter an HTML document type or is there another type field to manage it?
After this procedure I need also a SQL string than can read it.
Thanks!
edit:
linux file system
lets assume you are working on
/var/www/username/public_html/folderwhen u try
/PATH/testing.htmlprogram looking for
/PATH/testing.htmldirect access to root folder probably u dont have that right
in the other hand when you try
PATH/testing.html( no / at start )program look for
/var/www/username/public_html/PATH/testing.html