comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Re: Inserting Wave File
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Re: Inserting Wave File [message #45962] Mon, 24 October 2005 06:16 Go to next message
raval.chintan is currently offline  raval.chintan
Messages: 54
Registered: May 2005
Member
raval.chintan@gmail.com wrote:
> Dear All,
>
> I am using idl6.2 and Oracle 8i. I want to store and retrive wave file
> data through IDL - Oracle Connectivity. ( Here the Data ,I want to
> store in blob in Oracle) Here i am using IDLDataMiner. Can any body
> help me in that?
>
> Thanks in Advance.
>
> Regards,
> Chintan.


Hi

I am running follwing program. Here i have created one table wavetab in
oracle database which has two fields 1) wavedata 2) id . Here Wavedata
is in blob and id as an integer.


pro inputwave

; Read the Data
data = read_wav('C:\sound1.wav')
;Open Connection Record and Database Record
conn = obj_new('IDLdbDatabase')
staus = DIALOG_DBCONNECT(conn , DATASOURCE='WaveFile')
orec = obj_new('IDLdbRecordSet',conn,TABLE = 'wavetab')
;Add Record
id = 1
orec->AddRecord,[data,id],SET_AUTOINCREMENT=1
; Delete the Record Object
obj_destroy,orec
obj_destroy,conn

end

After running this program when i am running query select count(*) from
wavetab on the sql prompt gives me 0 Row Selected. So This program is
not inserting the data. I will be thankful if any one can help me in
this problem
Re: Inserting Wave File [message #46041 is a reply to message #45962] Mon, 24 October 2005 23:29 Go to previous message
raval.chintan is currently offline  raval.chintan
Messages: 54
Registered: May 2005
Member
raval.chintan@gmail.com wrote:
> raval.chintan@gmail.com wrote:
>> Dear All,
>>
>> I am using idl6.2 and Oracle 8i. I want to store and retrive wave file
>> data through IDL - Oracle Connectivity. ( Here the Data ,I want to
>> store in blob in Oracle) Here i am using IDLDataMiner. Can any body
>> help me in that?
>>
>> Thanks in Advance.
>>
>> Regards,
>> Chintan.
>
>
> Hi
>
> I am running follwing program. Here i have created one table wavetab in
> oracle database which has two fields 1) wavedata 2) id . Here Wavedata
> is in blob and id as an integer.
>
>
> pro inputwave
>
> ; Read the Data
> data = read_wav('C:\sound1.wav')
> ;Open Connection Record and Database Record
> conn = obj_new('IDLdbDatabase')
> staus = DIALOG_DBCONNECT(conn , DATASOURCE='WaveFile')
> orec = obj_new('IDLdbRecordSet',conn,TABLE = 'wavetab')
> ;Add Record
> id = 1
> orec->AddRecord,[data,id],SET_AUTOINCREMENT=1
> ; Delete the Record Object
> obj_destroy,orec
> obj_destroy,conn
>
> end
>
> After running this program when i am running query select count(*) from
> wavetab on the sql prompt gives me 0 Row Selected. So This program is
> not inserting the data. I will be thankful if any one can help me in
> this problem



Hi,

Does any one has example of adding image as an blob object in to sql
and oracle database using dataminer with IDL?

Regards
Chintan
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Reading UUID from JPEG2000 file
Next Topic: Re: coordinates in threedimensional object graphics ?

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 19:31:05 PDT 2025

Total time taken to generate the page: 0.00504 seconds