I have created a databasetable "Blob", which can contain Textfiles, XML-Files or zip-Files:
CREATE TABLE "RT"."BLOB"
( "B_ID" INTEGER NOT NULL GENERATED ALWAYS AS IDENTITY ( START WITH 1 INCREMENT BY 1 MINVALUE 1 MAXVALUE 2147483647 NO CYCLE CACHE 20),
"L_ID" INTEGER NOT NULL,
"ATTACHMENTS" BLOB(1048576) NOT NULL,
"NAME" VARCHAR(600)
)
I want to now that the name of the original files whose content has landed in the blob-column ("ATTACHMENTS") should be shown as a link on the JSP page. This goes without problems. If I click on the blob-Name (Column "NAME" in the database) in my JSP-Page, the blob should be loaded from the table and then either displayed accordingly depending on format - without additional treatment in the next JSP-Page. How can I could implement that in JSP? How should the INSERT-command to look for the blob table? I need urgend help. Thankss