Sie sind auf Seite 1von 1

TIPS FOR CREATING TABLE FOR INSERTING IMAGE

First open sql plus


TYPE the ff:
CREATE TABLE imageTable(index NUMBER(4), image LONG RAW);
INSERT INTO imageTable(index) values(1);
INSERT INTO imageTable(index) values(2);
COMMIT;

And then
Create forms and then create datablock and use imageTable
And then create trigger on image when image pressed
Type the ff:
DECLARE
x NUMBER(10);
BEGIN
x:=imageTable.index;
If x=1 THEN
read_image_file(c:\imgs\img1.jpg, JPEG,imageItem); that image item is the
item of your image lol
elsIf x=2 THEN
read_image_file(c:\imgs\img2.jpg, JPEG,imageItem); that image item is the
item of your image lol
END IF;
END;
Create a folder on c:\ and name it as imgs
And then add images on that folder
Save compile and execute then click the image to appear and then click the save
button to save it on your table.

Das könnte Ihnen auch gefallen