Hello,
at the start id like to say that i indeed was looking for my answer around - just couldnt find anything that works or is explained enough (mabe im just too dumb ;/)
I need help regarding loading/inserting files to db2 table - to blob column. I need to insert images, videos etc so files relatively big (not few KB but MB).
What is important i need the file to reside in database - not just pointer to file or something like that.
Currently i am using db 10.5 on Windows.
So far i came with such solution:
CALL SYSPROC.ADMIN_CMD ('import from c:\foty\import.txt of del modified by lobsinfile insert into ADMINISTRATOR."test"');
but despite it being processed correctly it got rejected (probably because file is bigger than 32K?). Ofc import.txt file has path to file which i want to be loaded.
So ive read some stuff about LOBS FROM command instead of lobsinfile but really cant get it to work ;/
Any detailes help would really really appreciated.
My table is simple, just one field with id of integer type and 2nd column "data" of blob type and size 2048
at the start id like to say that i indeed was looking for my answer around - just couldnt find anything that works or is explained enough (mabe im just too dumb ;/)
I need help regarding loading/inserting files to db2 table - to blob column. I need to insert images, videos etc so files relatively big (not few KB but MB).
What is important i need the file to reside in database - not just pointer to file or something like that.
Currently i am using db 10.5 on Windows.
So far i came with such solution:
CALL SYSPROC.ADMIN_CMD ('import from c:\foty\import.txt of del modified by lobsinfile insert into ADMINISTRATOR."test"');
but despite it being processed correctly it got rejected (probably because file is bigger than 32K?). Ofc import.txt file has path to file which i want to be loaded.
So ive read some stuff about LOBS FROM command instead of lobsinfile but really cant get it to work ;/
Any detailes help would really really appreciated.
My table is simple, just one field with id of integer type and 2nd column "data" of blob type and size 2048