GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Oracle  >  SQL
Go To First  |  Previous Question  |  Next Question 
 SQL  |  Question 11 of 171    Print  
Which datatype is used for storing graphics and images?
LONG RAW data type is used for storing BLOB's (binary large objects).



  
Total Answers and Comments: 6 Last Update: May 03, 2007   
  
 Sponsored Links

 
 Best Rated Answer
Submitted by: goyal_tarun
 
Hi,

BLOB is generally used to store pictures. It stands for Binary Large Object. The maximum storage limit is 4GB. There is also one limitation using BLOB, you can have only one column of type BLOB.

Cheers,
Tarun

Above answer was rated as good by the following members:
satyam_Ora
January 02, 2006 10:03:52   #1  
Ravi wadalkar        

RE: Which datatype is used for storing graphics and im...
my dear it is clob
 
Is this answer useful? Yes | No
January 02, 2006 10:04:43   #2  
Ravi wadalkar        

RE: Which datatype is used for storing graphics and im...
sorry yar it is not clob but blob i.e binary large objects
 
Is this answer useful? Yes | No
April 01, 2006 00:24:06   #3  
Kin        

RE: Which datatype is used for storing graphics and im...
Its clearly Blob datatype for storing images....
 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
November 02, 2006 11:12:33   #4  
thumatinagaraju        

RE: Which datatype is used for storing graphics and im...
hi ya ur correct it's blob only .. bcz it's binary data naaa..
 
Is this answer useful? Yes | No
March 09, 2007 06:18:03   #5  
Nikhil_4_Oracle        

RE: Which datatype is used for storing graphics and im...
HI ALL

YES its BLOB.....

So wanna insert u r pic into oracle..!!!

Try this


/*Insert a Image into DataBase */

create or replace PROCEDURE INSERT_BLOB(filE_namE IN VARCHAR2 dir_name varchar2)

IS

tmp number;

f_lob bfile;

b_lob blob;

BEGIN

dbms_output.put_line('INSERT BLOB Program Starts');

dbms_output.put_line('--------------------------');

dbms_output.put_line('File Name :'||filE_namE);

dbms_output.put_line('--------------------------');

UPDATE photograph SET image empty_blob()

WHERE file_name filE_namE

returning image INTO b_lob;

f_lob : bfilename( 'BIS_IMAGE_WORKSPACE' filE_namE);

dbms_lob.fileopen(f_lob dbms_lob.file_readonly);

--dbms_lob.loadfromfile(b_lob f_lob dbms_lob.getlength(f_lob));

insert into photograph values (111 user sysdate b_lob);

dbms_lob.fileclose(f_lob);

dbms_output.put_line('BLOB Successfully Inserted');

dbms_output.put_line('--------------------------');

commit;

dbms_output.put_line('File length is: '||dbms_lob.getlength( f_lob));

dbms_output.put_line('Loaded length is: '||dbms_lob.getlength(b_lob));

dbms_output.put_line('BLOB Committed.Program Ends');

dbms_output.put_line('--------------------------');

END inserT_bloB;

/

Regards

Nikhil


 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    
May 03, 2007 08:44:33   #6  
goyal_tarun        

RE: Which datatype is used for storing graphics and im...
Hi

BLOB is generally used to store pictures. It stands for Binary Large Object. The maximum storage limit is 4GB. There is also one limitation using BLOB you can have only one column of type BLOB.

Cheers
Tarun

 
Is this answer useful? Yes | NoAnswer is useful 1   Answer is not useful 0Overall Rating: +1    


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape