简体   繁体   中英

How to convert an audio file into a CLOB?

I am new to CLOB type of data objects. I'm using JAVA programming language to code.
My question is how to convert an audio file into a CLOB?

Should I convert the file into character array? or is there any other way?
Can anyone please guide me to a tutorial to do so?

Please help me.
Thanks in advance.

When refering toaudio files (*.wav, *.mp3...) you are probably dealing with binary files.

Oracle CLOB are for use with characters (Character large object), so you should rather use a BLOB (Binary large object). You should read your file ( FileInputStream ) and write every byte into the BLOB's output stream.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM