How to insert picture in a table
Hi,
Can anybosy tell me the syntax of inserting a picture in a table and because at someplace i was reading that we can do it if data type is BLOB (i am not sure). Can anybody tell me detail and step by step way to insert and then query that picture.
Your helps and suggestions will be highly appreciated.
Thanks
Regrads
Muhammad
What you need to look into Oracle Intermedia. The documentation explains how to add the image data to the database and also how to retrieve it once there.
Similar Messages
-
How to Insert picture in Database & how to Show this picture in Report/form
Hi
I have create a table and want to insert picture in this table in Blob format and also want to show this picture in Form / Reports
Regards
Shahzaib ismailHi Shahzaib,
create table
graphics_table
bfile_id number,
bfile_desc varchar2(30),
bfile_loc bfile,
bfile_type varchar2(4)
SQL> INSERT INTO graphics_table
2 VALUES(4,'April Book of Days Woodcut',bfilename('GIF_FILES','APRIL.JPG'),'JPEG');
1 row created.
In this way you can inserrt picture inside the database.
Regards
Rajat -
How to insert images in a table
Hi all,
Iam working On Oracle10g
can any one explain how to insert images in a table.
Any help will be much appreciated!!
Thanks.Hi,
Try like this
step1: Create a folder & place the image in it.
for eg: place the image 'Sunset.jpg' in 'IMAGEFILE' folder of D drive
Step2: Create a Directory in sql*plus as
CREATE DIRECTORY IMAGEDIR AS 'D:\IMAGEFILE';
Step3: Grant previlage to user
GRANT READ ON DIRECTORY IMAGEDIR TO PUBLIC;
Step4: Create the table in which you want to insert the image
create table loadalbum
(name varchar2(100),
image blob)
Step5: Create the procedure as
declare
l_blob blob;
l_bfile bfile;
begin
insert into loadalbum values ( 'Sunset', EMPTY_BLOB() )
returning image into l_blob;
l_bfile := bfilename( 'IMAGEDIR', 'Sunset.jpg');
dbms_lob.fileopen( l_bfile );
dbms_lob.loadfromfile( l_blob, l_bfile, dbms_lob.getlength( l_bfile ) );
dbms_lob.fileclose( l_bfile );
end;
Now you can know whether the image is inserted or not by
SELECT COUNT(*) FROM LOADALBUM;
COUNT(*)
1
which means image is inserted.
Hope this may help you. -
Its very urgent:how to insert data into database tables
Hi All,
I am very new to oaf.
I have one requirement data insert into database tables.
here createPG having data that data insert into one custom table.
but i dont know how to insert data into database tables.
i wrote the code in am,co as follows.
in am i wrote the code:
public void NewoperationManagerLogic()
ManagerCustomTableVOImpl vo1=getManagerCustomTableVO1();
OADBTransaction oadbt=getOADBTransaction();
if(!vo1.isPreparedForExecution())
vo1.executeQuery();
Row row=vo1.createRow();
vo1.insertRow(row);
in createPG processrequest co:
public void processRequest(OAPageContext pageContext, OAWebBean webBean)
super.processRequest(pageContext, webBean);
ManagerInformationAMImpl am=(ManagerInformationAMImpl)pageContext.getApplicationModule(webBean);
am.NewoperationManagerLogic();
process form request:
public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
super.processFormRequest(pageContext, webBean);
if(pageContext.getParameter("Submit")!=null)
ManagerInformationAMImpl am=(ManagerInformationAMImpl)pageContext.getApplicationModule(webBean);
am.getOADBTransaction().commit();
please help with an example(sample code).
its very urgent.
thanks in advance
Seshu
Edited by: its urgent on Dec 25, 2011 9:31 PMHi ,
1.)You must have to create a EO based on custom table and then VO based on this EO eventually to save the values in DB
2.) the row.setNewRowState(Row.STATUS_INITIALIZED); is used to set the the status of row as inialized ,this is must required.
3.) When u will create the VO based on EO the viewattributes will be created in VO which will be assigned to the fields to take care the db handling .
You must go thtough the lab excercise shipped with you Jdeveloper ,there is a example of Create Employee page ,that will solve your number of doubts.
Thanks
Pratap -
How to put pictures in a table
I am seeking how to store pictures in a table
Could you help me please?
thanx
byeLook into BLOB datatypes. They allow the storage of large binary objects (like pics). If you have the 8i Web Dev book there is a great example of dealing with images stored in a table.
-A
<BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by Fabien PREUD ([email protected]):
I am seeking how to store pictures in a table
Could you help me please?
thanx
bye<HR></BLOCKQUOTE>
null -
How to insert picture in JTable?
I want to insert picture in JTable.
But I don't know how to insert picture in JTable.
My project must use it very much.
Plaese help me.there is an example with sources
C:\jdk140\demo\jfc\SwingSet2
or
YOUR_JDK\demo\jfc\SwingSet2 -
How to insert data in database table
Hi experts,
How to insert data into database table using internal table from function module.Hi,
As per my understanding are you looking for the complete API feature of data insertion into the database using the Locking Mechanism? If yes, then you need to create a Lock Object using the Primary keys of the Primary Table and Secondary Tables. You need to call the lock object first and then you need to make the entry into the table. This principle is based on 'All or None Concept'.
For the insert Statement Key word you can have a look at the following link:
http://help.sap.com/abapdocu/en/ABAPINSERT_SOURCE.htm
Hope this helps.
Thanks,
Samantak. -
How to insert picture into Jframe?
sorry... can someone teach me how to insert picture(gif,jpeg) into Jframe?
besides, where can i get tutorials about NetBeans?
Thank you very much~~!It can't be done using java.
-
How to insert date into database table
Hi,
i used date navigator in htmlb. i want toupdate date into the database table ystudetn_inf. and also please tell me how to insert that date into table.give me small example in stepby step.Hi,
I am sure you have used htmlb:dateNavigator as follows
<htmlb:dateNavigator id = "myDateNavigator"
monthsPerRow = "1"
onNavigate = "myOnNavigate"
onDayClick = "myOnDayClick"
onWeekClick = "myOnWeekClick"
onMonthClick = "myOnMonthClick">
</htmlb:dateNavigator>
Trap the onDayClick event in oninputprocessing
date_event ?= cl_htmlb_manager=>get_data(
request = runtime->server->request
name = 'inputField'
id = 'mydate' ).
date = datenavigator_event->day.
and use date value to update your table.
If found helpfull rewards points.
Regards,
Albert -
How to insert data into two tables linke with foreign key..
I have two tables
1)EMP(emp_ID,username,emp_type_code)
emp_ID is primary key, emp_type_code is a foreign key references emptype table.
2)emptype(emp_type_code,emp_type_descripton)
emp_type_code is primary key
Could anyone help me ..how to insert data into EMP table. How to insert data into two tables linke with foreign key..CREATE TABLE "CATDB"."DWDIMUSER"
"USER_ID" NUMBER(10,0) NOT NULL ENABLE,
"SPECIALTY_ID" NUMBER(10,0),
"FULLNAME" VARCHAR2(20 BYTE),
"FNAME" VARCHAR2(20 BYTE),
"LNAME" VARCHAR2(20 BYTE),
"USER_SUBTYPE" VARCHAR2(20 BYTE),
CONSTRAINT "DIMUSER_PK" PRIMARY KEY ("USER_ID") USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "CATDB" ENABLE,
CONSTRAINT "DIMUSER_DIMSPECIALTY_FK" FOREIGN KEY ("SPECIALTY_ID") REFERENCES "CATDB"."DWDIMSPECIALTY" ("SPECIALTY_ID") DISABLE
CREATE TABLE "CATDB"."DIMSPECIALTY"
"SPECIALTY_ID" NUMBER(10,0) NOT NULL ENABLE,
"SPECIALTY_NAME" VARCHAR2(100 BYTE),
CONSTRAINT "DIMSPECIALTY_PK" PRIMARY KEY ("SPECIALTY_ID") USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "CATDB" ENABLE
INSERT INTO DIMUSER (FullName, FNAME, LNAME, USER_TYPE, USER_SUBTYPE)
SELECT DISTINCT
Engineer AS FullName,
regexp_substr(Engineer , '[^,| ]+', 1, 1) as FName,
regexp_substr(Engineer , '[^,| ]+', 1, 2) as LName ,
'Engineer'
FROM EMPLOYEELOOKUP;
INSERT INTO DIMSPECIALTY (SPECIALTY_NAME)
SELECT DISTINCT SPECIALITY
FROM EMPLOYEELOOKUP;
COMMIT;
CREATE TABLE employeelookup ...IS A TABLE THAT HAS ALL THE DATA NEDED TO BE FILLED IN BOTHE TABLES...
CREATE TABLE "CATDB"."EMPLOYEELOOKUP"
"EMPLOYEELOOKUP_ID" NUMBER(10,0) NOT NULL ENABLE,
"ENGINEER" VARCHAR2(25 BYTE),
"SPECIALTY" VARCHAR2(20 BYTE),
CONSTRAINT "DIMSPECIALTY_PK" PRIMARY KEY ("EMPLOYEELOOKUP_ID") USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645 PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT) TABLESPACE "CATDB" ENABLE
DATA IN EMPLOYEELOOKUP
Engineer, Specialty,
John, Dow, Electronis,
Dow, Jons, Technician
Stan Smithers Sales
Mark, Richards Marketing
Jenny, Lane Marketing
John, Lee Sales
I NEED TO LOAD THE FOREIGN KEY IN DIMUSER FROM THE DIMSPECIALTY TABLE?
BY USING THE LOOKUP TABLE TO MARCH THE NAMES UNDER THE Engineer COLUMN, SPECIALTY COLUMNE DISTICTIVLY BY JOINING THE DIMSPECILTY TO RISTIVE THE PRIMARY KEY AND FILL IT IN THE DIMUSER TABLE AS A FOREIGNE KEY. -
How to insert data into a table from an xml document
using the XmlSql Utility, how do I insert data into a table from an xml document, using the sqlplus prompt.
if i use the xmlgen.insertXML(....)
requires a CLOB file, which i dont have, only the xml doc.
Cant i insert directly from the doc to the table?
the xmlgen examples I have seen first convert a table to a CLOB xmlString and then insert it into another table.
Isnt there any other way?Your question is little perplexing.
If you're using XML SQL Utility from
the commandline, just use putXML.
java OracleXML putXML
null -
How to insert into two differents tables at the same time
Hi
I'm newer using JDev, (version 3.1.1.2 cause the OAS seems to support just the JSP 1.0)
and I want to insert into two differents tables at the same time using one view.
How can I do that ?
TIA
EdgarOracle 8i supports 'INSTEAD OF' triggers on object views so you could use a process similar to the following:
1. Create an object view that joins your two tables. 'CREATE OR REPLACE VIEW test AS SELECT d.deptno, d.deptname, e.empname FROM DEPT d, EMP E'.
2. Create an INSTEAD OF trigger on the view.
3. Put code in the trigger that looks at the :NEW values being processed and determines which columns should be used to INSERT or UPDATE for each table. Crude pseudo-code might be:
IF :NEW.deptno NOT IN (SELECT deptno FROM DEPT) THEN
INSERT INTO dept VALUES(:NEW.deptno, :NEW.deptname);
INSERT INTO emp VALUES (:NEW.deptno, :NEW.empname);
ELSE
IF :NEW.deptname IS NOT NULL THEN
UPDATE dept SET deptname = :NEW.deptname
WHERE deptno = :NEW.deptno;
END IF;
IF :NEW.empname IS NOT NULL THEN
UPDATE emp SET empname = :NEW.empname
WHERE deptno = :NEW.deptno;
Try something along those lines.
null -
How to insert record in child table with foreign key
Hi,
I am using Jdeveloper 11.1.2.0. I have two master table one child table.
How to insert and update a record in child table with foreign key ?
I have created VO based on three EO(one eo is updatable other two eo are references) by using joined query.
Thanks in Advance
Edited by: 890233 on Dec 24, 2011 10:40 PM... And here is the example to insert using sequenceimpl by getting the primary key of the master record and insert master and detail together.
Re: Unable to insert a new row with a sequence generated column id
-Arun -
How to insert records into the Table?
Dear Sir,
I'm new to JDeveloper. Now I managed to create a Frame in JDeveloper with many Text fields and a button. In the back end, I have a procedure to insert records to a table, to which I pass the values of the fields as parameters. Now I'm not getting the steps to call the PL/SQL Stored procedure when I click on the button. I'm using Oracle 9i JDeveloper version 9.0.3.1. and Oracle 9i Database.
Please give me the complete steps to achieve my task - it is quite urgent.
Thanking You in advance.
Regards,
Senthil .A. Perumal.The JDBC tutorial will show you how to call a stored procedure from Java:
http://download-west.oracle.com/docs/cd/B10501_01/java.920/a96654/basic.htm
One more thing, why are you using such an old version of JDeveloper? any reason not to upgrade to the 10.1.3 version of JDeveloper?
Also you might want to look into ADF and how it makes these type of database interactions easier.
See this demo:
http://www.oracle.com/technology/obe/obe1013jdev/adf_swing/master_detail_page_adfswing_bc.htm -
How to put pictures inside the table in Pages for IPad?
How can I put pictures inside the table in Pages for IPad? I can do that in Pages in my macbook, but I can't in IPad.
It would appear that unless you are working from a document that already had section breaks (or the equivilent) ,you can't. I have some files in pages that began as MS Word documents with multiple sections that allow that by tapping on the footer (or header) and making the change. Files created in Pages (or from other sources but without section beaks) do not.
Maybe you are looking for
-
Error in installation Oracle 8.1.6 on Fedora linux
I am getting the following error message while installing Oracle 8i release 2 (8.1.6) for linux intel on Fedora Linux. "Symbol errorno, version GLIBC-2.0 not defined in libc.so.6 with link time reference (libzip.so)" Earlier I have sucessfully instal
-
The operation cant be completed because you dont have permission to access some of the items
First of all sorry if my gammar isnt the best, as I suffer for Dylexia and spell and gammar check isnt that good yet! Has anyone ran into the same issue when copying files to a network share or removable drive where you have full access over and you
-
Hello All! We have EP 7.0 connected to MDM. In portal we had only MDM users. On the main portal page (page that You see just after login) MDM team stores very personal information that is related only to MDM users. Now we connected EP to SRM and in E
-
i searched discussions for this question but wasn't sucessful ... so here's my question: i use a toshiba pc laptop and an iMac G5 ... in order to watch dvds (with different region codes) on my PC, I use VLC with great success ... I wanted to do the s
-
Hello. I was wondering, is there an installation CD required for the Micro. Here's my problem: for some reason, my computer doesn't read programs from a CD. So any mp3 player which requires CD installation is useless to me. With the Micro, would I be