How to Strore A Video or an Audio File in the BLOB

Hi Friends,
My Name is Rahul.I am looking for a solution of how to store a Data of more 64KB using Data Type Long Raw,BLOB,CLOB using JDBC Concepts and without using a Trigger or a stored procedure.
If at all some one can help me with a written code it would be of a great help to me.
Regards,
RAHUL

hai,
This two programs are working properly incase of IMAGES
BUT I WANT TO STORE RESUMES LIKE ALL ARE IN ".DOC" FORMAT
WHAT IS THE SOLUTION TO THIS .CURRENTLY IT IS NOT WORKING IN CASE OF .DOC FILES
CAN ANY BODY HELP ME PLESE.
Thanks in advance
//to store photo
import java.sql.*;
import java.io.*;
import oracle.jdbc.driver.*;
class PhotoInsert
public static void main(String args[])throws Exception
     //Class.forName("OracleDriver");
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
     Connection con;
     con = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:ora","scott","tiger");
//     System.out.println(con);
     PreparedStatement ps=con.prepareStatement("insert into empall2 values(?,?,?,?)");
     System.out.println("Vehical to take Sql Statements Created..");
     ps.setInt(1,101);
     ps.setString(2,"Rama");
     ps.setFloat(3,5000);
     File photo=new File("c:\\chinna\\kona\\Chinababu_Konagif");
     FileInputStream photoStream=new FileInputStream(photo);
     ps.setBinaryStream(4,photoStream,(int)photo.length());
     ps.executeUpdate();
     System.out.println("Record Inserted..");
     photoStream.close();
     con.close();
//to receive
import java.sql.*;
import java.io.*;
import oracle.jdbc.driver.*;
class PhotoRetrieve
public static void main(String args[])throws Exception
     //Class.forName("OracleDriver");
DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
     Connection con;
     con = DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:ora","scott","tiger");
Statement st=con.createStatement();
System.out.println("Vehical to take SQL Statementscreated");
     ResultSet rs=st.executeQuery("select *from empall1");
     rs.next();
     InputStream in=rs.getBinaryStream("ephoto");
     FileOutputStream fout=new FileOutputStream("abc.gif");
     int byteRead=0;
     byte[] buffer=new byte[4096];
     while((byteRead=in.read(buffer))!=-1)
          fout.write(buffer,0,byteRead);
     System.out.println("photo stored into new file");
     fout.close();
     in.close();
     st.close();
     con.close();
//TAble structure is
sql>create table empall(eno number(4),ename varchar2(12),esalary number(9),ephoto blob);
That two programs are working properly incase of IMAGES
BUT I WANT TO STORE RESUMES LIKE ALL ARE IN ".DOC" FORMAT
WHAT IS THE SOLUTION TO THIS .CURRENTLY IT IS NOT WORKING IN CASE OF .DOC FILES
CAN ANY BODY HELP ME PLESE.
Thanks in advance
Kanachanaa

Similar Messages

  • In v.11, how can I capture video but not audio from a camera?

    In v.11, how can I capture video but not audio from a camera?

    Rodney
    I see what you mean....Premiere Elements 10 appears to be the last version that had options for the user to select Capture Video and/or Audio in the its Capture Window.
    If you are doing DV data capture firewire into the Premiere Elements 11 Capture Windows and want a final file without audio and you cannot do this at the camera level, then consider....
    1. Do the Capture "to the Timeline" - video linked to audio result on the project's Video Track 1
    a. Right click the Timeline DV AVl and select Delete Audio and then edit accordingly.
    or
    b. Import the DV AVI but, when you go to export it, in the export settings, remove the check mark next to Audio so that the export contains only the video portion.
    Publish+Share/Computer/AVI with Presets = DV NTSC Standard
    Please let us know if any of that worked for you.
    Thank you.
    ATR

  • How to render mp4 video with 4 audio channels?

    How to render mp4 video with 4 audio channels?

    Hi Aineaine,
    Welcome to Adobe Forums.
    Please refer to the below article for multi channel audio.
    http://helpx.adobe.com/premiere-pro/using/clips-channels-tracks.html
    Thanks

  • How do you record video with usb mic and have the audio from garageband be the sound when recording and not just your normal voice but garage band effects for youtube?

    How do you record video with usb mic and have the audio form garageband be apart of the video when recording, meaning the audio from garageband and echo  and not just your normal voice for youtube post?its not add the garageband audio its just normal voice from mic no  effects is going thru?

    Hi Life93,
    What you describe would be possible by recording your video, then removing the audio from it and adding audio from GarageBand once the video is in iMovie (I presume here that you are using iMovie for your video production. Other applications may need different methods.)
    See this thread on how to remove the audio from a clip in iMovie -
    Is there a way to separate audio from a video c...
    https://discussions.apple.com/thread/1779767
    To add audio from GarageBand use this article -
    iMovie '11: Add a sound clip to your project
    http://support.apple.com/kb/PH2255
    Thanks for using Apple Support Communities.
    Best,
    Brett L

  • How do i drag media to the menu screens in premiere elements 13? I can't see my audio files and the menu screens at the same time. In prior versions it was easy

    How do i drag media to the menu screens in premiere elements 13? I can't see my audio files and the menu screens at the same time. In prior versions it was easy?
    It is very cumbersome to "re browse" for audio files/pics/movie clips to add to menu screens. Certainly there is a way to view the media and menu screen at the same time so I can drag and drop?

    Jayhawk
    I think I know exactly what you are seeking and believe it cannot be done in Premiere Elements 11, 12, and 13 as it can be done in versions earlier than 11 where the Disc Layout and Project Media are viewed side by side.
    Premiere Elements 13 uses a Movie Menu customization workspace which is not allowing viewing of Project Assets in the Expert workspace at the same time.
    ATR

  • I have been sampling new imported drum loops. And if I adjust region to song or time strecth it updates the audio file in the library. How to stop this? I lost the original setting to one loop. automatically doing it ??

    I have been sampling new imported drum loops. And if I adjust region to song or time strecth it updates the audio file in the library. How to stop this? I lost the original setting to one loop. automatically doing it ??

    This "original file cannot be found" thing happens if the file is no longer where iTunes expects to find it. Possible causes are that you or some third party tool has moved, renamed or deleted the file, or that the drive it lives on has had a change of drive letter. It is also possible that iTunes has changed from expecting the files to be in the pre-iTunes 9 layout to post-iTunes 9 layout,or vice-versa, and so is looking in slightly the wrong place.
    Select a track with an exclamation mark, use Ctrl-I to get info, then cancel when asked to try to locate the track. Look on the summary tab for the location that iTunes thinks the file should be. Now take a look around your hard drive(s). Hopefully you can locate the track in question. If a section of your library has simply been moved, or a drive letter has changed, it should be possible to reverse the actions.
    Alternatively, as long as you can find a location holding the missing files, then you should be able to use my FindTracks script to reconnect them to iTunes .
    tt2

  • How i can wacht video clips in my mac and the tv at the same time trough the apple tv

    how i can wacht video clips in my mac and the tv at the same time trough the apple tv

    Welcome to the Apple Community.
    Unfortunately you can't do that.

  • HT201066 How can I split a long recording audio file into multiple audio files?

    Hi,
    How can I split a long recording audio file into multiple audio files?
    With Windows I was using Nero software, which is not available for Mac. Is there any similar app for free for Mac?
    Thanks!

    Hello ingiorgio
    You can import the track into GarageBand and then split the tracks there. Once that it is done you can highlight the ruler section and then share the song to iTunes to get them separated out. 
    GarageBand - Split regions in the Tracks area
    http://help.apple.com/garageband/mac/10.0/#gbnd76fcce04
    GarageBand - Share songs to iTunes
    http://help.apple.com/garageband/mac/10.0/#gbndfb96a96f
    Regards,
    -Norm G.

  • How to Convert iTunes Songs (Apple lossless audio file) to a MP3 for E-mail

    How to Convert iTunes Songs (Apple lossless audio file) to a MP3 for E-mail?
    My computer is Windows 7 and my Itunes software version is 1.0.2
    Many thanks in advance...

    iTunes 1.0.2 is +at least+ eight years old.
    The current version is 9.2, and it's free.
    If that was a typo, and you're using something more current:
    In the iTunes preferences, change the import settings to mp3.
    Then select the songs you wish to convert.
    From the "Advanced" menu, choose "Create mp3 version".
    When done, change the import settings back to Apple Lossless.
    That's it.
    BTW, this is the Logic Pro forum, which has absolutely nothing to do with iTunes.

  • How to export all tracks into audio files with the same duration

    Hi everybody.
    I am trying to export all the tracks into different audio files.
    It's 10 soft. instruments and an audio track. I tried with "File>Export>All Tracks as Audio File but the result is 11 audio files with different lengths. As the song is 3 minutes and 20 seconds I would like every single track to be 3.22 sec long.
    How do I do it? In fact, each track is composed not only by played instruments but also by moments of silence.
    Thanks!!
    Alessandro

    sambino wrote:
    I tried with "File>Export>All Tracks as Audio File but the result is 11 audio files with different lengths. As the song is 3 minutes and 20 seconds I would like every single track to be 3.22 sec long.
    The files are different lengths because each instrument does not stop playing at the same moment. It would accomplish nothing other than waste disk space if Logic appended silence to the end of each file in order to make each track the same length. The different lengths you see mean nothing because the absence of appended silence means nothing.
    each track is composed not only by played instruments but also by moments of silence.
    Naturally. And that silence is accounted for in your exported files, when the silence appears at the beginning of the track, and when it appears during the track. It just isn't appended at the end because that would be pointless. Consider this project, consisting of four tracks:
    When I use the command File > Export > All Tracks as Audio Files, Logic will produce four files that look like this:
    The files are not equal in length, which is perfectly fine. What's important is that they all start at bar 1, and will align properly when imported into some other program. So all you need is the command you already used: File > Export > All Tracks as Audio Files. In one step, it will produce all the files you need, and it will produce them correctly.
    By using Bounce, you would be gaining nothing except extra work, because you would have to do it separately for each file you wanted to produce. With Export > All Tracks as Audio Files, you get all your files with just one command.
    iSchwartz wrote:
    exporting tracks means that any panning or automation will not be rendered. So if you want the engineer to put up all of your tracks at unity gain (all faders at zero) and have your tracks & stems reproduce the mix you're hearing at your studio, use bounce, not export.
    If you want to have your tracks & stems reproduce the mix you're hearing at your studio, there's no need to go to the extra effort of using Bounce instead of Export. You only need to enable (in the Export dialog) the checkbox "Include Volume/Pan Automation." This is explained on p. 1022. When you do this, any panning or automation will indeed be rendered.

  • Exporting Pro CS4 videos to different mpeg formats-no video or separate audio file???

    I have Premiere Pro CS4. When I export my video to mpeg-4 format, there is no video. When I export to mpeg-2DVD format, there is a separate wav audio file. Adobe Media Encoder, which I use automatically as the export encoding software, does not seem capable of combining the audio and video files into a single video. Export to mpeg-2 format works fune. When I try to export a 1 hr 20 min video in H.264 1440 x 1080 config, it is a 10GB file. I want the best quality that will fit on  4.7 GB or 8.5 GB media. What am I missing ?

    Best thing is to use Dynamic Link/(Send to Encore. Set Encore to automatic and your movie will fit nicely on a dvd.
    If you do not want to use DL then export from Premiere with the mpeg2-dvd settings (choose one of the presets or set it manually) with Multiplexing OFF.
    Don't forget to set Use Max Render Quality ON.
    This output will give you three files. m2v, wave and xmpses (and maybe a xmp file)
    Import the first two as a timeline in Encore, make menu and burn.
    Using a seperate video file and audio file is the way to go for making a dvd. If you set multiplexing to on then you will get one file containing video and audio.
    Encore has to dumux (or demultiplex, separating video from audio) before being able to make the disk. Waist of energy.

  • HOW TO FIX IT, GARAGE BAND FOUND  AUDIO FILES IN 8 BIT FORMAT. THIS FORMAT IS UNSUPPORTED AND CANNOT BE PLAYED

    HOW TO FIX IT, GARAGE BAND FOUND  AUDIO FILES IN 8 BIT FORMAT. THIS FORMAT IS UNSUPPORTED AND CANNOT BE PLAYED

    Hi..
    Post your topic in the GarageBand community >  GarageBand for Mac: iLife: Apple Support Communities
    More GB users will see your post there.

  • Can I export my Soundtrack Pro audio files, including the video?

    I'm new to soundtrack pro 2, could I export my audio files including the video?
    I tried, but all i get was audio...
    thanks!

    Export -> Master Mix - choose the File Type -> *Using Compressor*, this will give you options for re-encoding or preserving the video file.

  • Streaming audio file over the network w JMF. How to know when the file end

    Hi
    I am streaming audio file over the network using JMF. I want to be able to know when a file end so I can close the streaming session.
    Can some one please help
    Thanks

    If you put a ControllerListener on the Processor that's associated with generating the RTP stream, it'll generate an "EndOfMedia" event when the end of the file is reached.

  • How to read an audio file from the disk and play it?

    Do you know who to read an audio file from the hard disk and play it. It's for an application and not an applet. I tried with the Applet.newAudioClip(URL url) thing, but I keep getting a MalformedURLException.
    And is there a way to get the path of the file you are using? Currently I'm doing this:
    File file = new file("randomname");
    string = file.getAbsolutePath();
    file.delete();
    I'm sure there's a better way. And this is not for an applet, just a normal app.

    Below is a class that should be of use to you.
    package com.sound;
    import java.io.File;
    import javax.sound.sampled.AudioFormat;
    import javax.sound.sampled.AudioInputStream;
    import javax.sound.sampled.AudioSystem;
    import javax.sound.sampled.Clip;
    import javax.sound.sampled.DataLine;
    public class SoundPlayer implements Runnable {
         String filename;
         public SoundPlayer(String filename){
              this.filename = filename;
              Thread t = new Thread(this);
              t.start();
         }//SoundPlayer constructor
         public void run(){
              playSound();
         }//run method
         public boolean playSound(){
              try {
                   File file = new File(filename);
                   AudioInputStream stream = AudioSystem.getAudioInputStream(file);
                   AudioFormat     format = stream.getFormat();
                   DataLine.Info info = new DataLine.Info(Clip.class, format);
                   Clip clip = (Clip)AudioSystem.getLine(info);
                   clip.open(stream);
                   clip.start();
                   while (clip.isRunning()) {
                       Thread.sleep(100);
                   clip.close();
              catch (Exception e) {
                  System.err.println("Error in run in SoundPlayer");
                   return false;
              return true;
         }//playSound() method
    }//Class SoundPlayer

Maybe you are looking for

  • Why can't I change the lengh of a clip to 00:06 or anything below 1 second?

    I recently upgraded from iMovie 5 to version 6, and though there are a few more bells and whistles in the newer version its less user friendly and takes longer to create a project. My issues are: 1. When importing images/photos to iMovie 6 it does no

  • OC4J Versus 9ias

    With all the fuss over OC4J, what is the strategic importance of using OC4J versus deploying your application on 9ias? Is there something proprietory within 9ias that would be a dis-incentive? A response from would be greatly appreciated. When it see

  • List View and text length

    Hi Apple Support, did you solved the following usability district in lion? if you us the list / splitting view in the finder you have long and short file names. if you scroll through the columns i wish me that their length adjust it automatically wit

  • Unable to set an unnumbered interface

    We are trying to set up two interfaces with the same IP address, both up at the same time. It looks like the IFF_UNNUMBERED flag should do this, and is used by one interface to "borrow" the address of another interface. However, we can't get it to wo

  • Emailing Reorder point to MRP controller

    Dear Guru's, Can any one tell me how to send emails to the MRP controllers after running MRP? I would like to send the current inventory status and the ROP with the PR number. Please advice the user exit or the program to be used... i have no idea ab