Please HELP!!! I try to insert BLOB to Oracle

Please help, I try to insert BLOB to Oracle.
Here is my sample code. Basically what i tried to do is to to try to insert an image file to Oracle.
But it did not work. If you have a sample code that works, please give me.
Thanks,
Tom
try
out.println ("Done");
dbCon=trans.getConnection();
dbCon.setAutoCommit(false);
stmt1.execute ("update emorytest.PHYSICIANFOTO set FOTO=empty_blob() where name = 'foobar'");
stmt = dbCon.prepareCall("SELECT FOTO from emorytest.PHYSICIANFOTO where name='foobar' for update");
stmt.execute();
rset = (OracleResultSet)stmt.getResultSet();
rset.next();
BLOB bdata = rset.getBLOB("test.jpg");
os = bdata.getBinaryOutputStream();
os.write(bdata);
os.flush();
os.close();
dbCon.commit();
dbCon.close();
catch (Exception ex)
ex.printStackTrace();

Well, the obvious problem is that your "getBLOB" call ought to access the field by the field name "FOTO" not by a file name. Then you need to open an FileInputStream for the image before copying it to the blob's output stream.
In my opinion BLOB and CLOB handling is jdbc is a confusing mess.

Similar Messages

  • I forgot the code for my iPhone to access the Home screen I do , please help me try formatting the iphone but when I put in nfc mode and connect it to the pc recognizes it and everything when you try to format the error 3004 appears

    I forgot the code for my iPhone to access the Home screen I do , please help me
    try formatting the iphone but when I put in nfc mode and connect it to the pc recognizes it and everything when you try to format the error 3004 appears

    Hello polo-angulo,
    I apologize, I'm a bit unclear on the nature and scope of the issue you are describing. If you are saying that you are getting an error code (3004) when you try to restore your iPhone (because you could not remember your passcode), you may find the information and troubleshooting steps outlined in the following articles helpful:
    Resolve iOS update and restore errors in iTunes - Apple Support
    Get help with iOS update and restore errors - Apple Support
    Sincerely,
    - Brenden

  • HT201441 please help me try to contact the owner of this phone IMEI ****  ICCID **** i got his phone now with me but i dont know how to contact them first time

    please help me try to contact the owner of this phone IMEI ****  ICCID **** i got his phone now with me but i dont know how to contact them first time i got it low battery contact me
    I will explan more how i got this phone
    Call me +**** Micky Thai
    <Personal Information Edited By Host>

    A long shot but you might try using the phone to send an email to the phone asking the owner to call their mobile phone.  If the owner has a computer they may get the email and get in contact with you.
    But Roger's suggerstion of turning it over to the police is the best bet.
    OT

  • Please help me in finding link to downlaod oracle BI discover

    Please help me in finding link to downlaod oracle BI discover
    i didnot find discover in obiee so where can find
    Thanks in Advance

    Hi,
    Discoverer is part of BI Standard Edition. You can down load BI from here. You need the 2 CDs for Discoverer Plus and Viewer and the Tools CD for Discoverer Admin and Desktop.
    You should also apply the patches to go to the latest version. The LearnDiscoverer blog has details of the latest patches.
    Rod West

  • Please help, I need to read blob and output in bytes from wwv_flow_files.

    Hi all,
    I am having a requirement to read a blob stored in the oracle table and convert it into bytes. I am loading this table (wwv_flow_files) with APEX.
    The code under page 1 is as follows:
    DECLARE
    z number;
    y varchar2(4000);
    x varchar2(400);
    b blob;
    BEGIN
    select filename,blob_content into x ,b from APEX_APPLICATION_files where name =:P1_FILE_NAME;
    select length(convertBlobToBytes(b)) into z from dual;
    :P1_RESULT := z;
    end;
    Java code is as follows:
    import java.io.*;
    import java.sql.Blob;
    public class convertBlob {
    * @param blob
    * @return
    public static byte[] convertBlobToBytes(Blob blob) {
    if (blob==null) return null;
    try {
    InputStream in = blob.getBinaryStream();
    int len = (int) blob.length(); //read as long
    long pos = 1; //indexing starts from 1
    byte[] bytes = blob.getBytes(pos, len);
    in.close();
    return bytes;
    catch (Exception e) {
    System.out.println(e.getMessage());
    return null;
    PL/SQL wrapper is as follows:
    CREATE OR REPLACE FUNCTION convertBlobToBytes(p1 IN BLOB) RETURN LONG RAW AUTHID CURRENT_USER AS LANGUAGE JAVA NAME 'convertBlob.convertBlobToBytes(java.sql.Blob) return byte[]';
    I loaded this java class and pl/sql wrapper into the database using JDEVELOPER.
    But I am getting the length of the file, as twice the size.
    For example, When I run the program which reads the file returns the length of the file as a byte array, the length is 819.
    When I pass the same file as a blob from apex, to the java program that converts blob to bytes, the length of the file is 1638.
    And hence I am getting wrong results, further in the process.
    Can you please help me? Any help is appreciated.
    rgds,
    Suma.

    The example on this page is showing how to read a blob in portions you determine yourself:
    http://apex.oracle.com/pls/otn/f?p=31517:91
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://apex.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Please help with the query (INSERT RETURNING BULK COLLECT INTO)

    I am trying to write a query inside the C# code where I would insert values into a table in bulk using bind variables. But I also I would like to receive a bulk collection of generated sequence number IDs for the REQUEST_ID. I am trying to use RETURNING REQUEST_ID BULK COLLECT INTO :REQUEST_IDs clause where :REQUEST_IDs is another bind variable
    Here is a full query that use in the C# code
    INSERT INTO REQUESTS_TBL(REQUEST_ID, CID, PROVIDER_ID, PROVIDER_NAME, REQUEST_TYPE_ID, REQUEST_METHOD_ID, SERVICE_START_DT, SERVICE_END_DT, SERVICE_LOCATION_CITY, SERVICE_LOCATION_STATE, BENEFICIARY_FIRST_NAME,
    BENEFICIARY_LAST_NAME, BENEFICIARY_DOB, HICNUM, CCN, CLAIM_RECEIPT_DT, ADMISSION_DT, BILL_TYPE,
    LANGUAGE_ID, CONTRACTOR_ID, PRIORITY_ID, UNIVERSE_DT, REQUEST_DT, BENEFICIARY_M_INITIAL,
    ATTENDING_PROVIDER_NUMBER, BILLING_NPI, BENE_ZIP_CODE, DRG, FINAL_ALLOWED_AMT, STUDY_ID, REFERRING_NPI)
    VALUES
    (SQ_CDCDATA.NEXTVAL, :CIDs, :PROVIDER_IDs, :PROVIDER_NAMEs, :REQUEST_TYPE_IDs,
    :REQUEST_METHOD_IDs, :SERVICE_START_DTs, :SERVICE_END_DTs, :SERVICE_LOCATION_CITYs,
    :SERVICE_LOCATION_STATEs, :BENEFICIARY_FIRST_NAMEs, :BENEFICIARY_LAST_NAMEs, :BENEFICIARY_DOBs,
    :HICNUMs, :CCNs, :CLAIM_RECEIPT_DTs, :ADMISSION_DTs, :BILL_TYPEs, :LANGUAGE_IDs,
    :CONTRACTOR_IDs, :PRIORITY_IDs, :UNIVERSE_DTs, :REQUEST_DTs, :BENEFICIARY_M_INITIALs,
    :ATTENDING_PROVIDER_NUMBERs, :BILLING_NPIs, :BENE_ZIP_CODEs, :DRGs, :FINAL_ALLOWED_AMTs,
    :STUDY_IDs, :REFERRING_NPIs) RETURNING REQUEST_ID BULK COLLECT INTO :REQUEST_IDs
    However, when I run this query, it gives me a strange error ORA-00925: missing INTO keyword. I am not sure what that error means since I am not missing any INTOs
    Please help me resolve this error or I would appreciate a different solution
    Thank you

    You cannot use (and do not want to in this case) the BULK COLLECT.
    create table for_testing
       the_id      number not null primary key,
       some_data   number
    declare
       l_return_value for_testing.the_id%type;
    begin
      4 
       insert into for_testing
          the_id,
          some_data
       values
          1,
          5
       returning the_id into l_return_value;
       dbms_output.put_line('the return values is ' || l_return_value);
    end;
    20  /
    the return values is 1
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:00.02
    TUBBY_TUBBZ?Is a simple example. In the future, please use the tags to preserve formatting on your code like i have so it remains readable .                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • TS1398 i have a iPhone 4. I am trying to connect to the Wifi at my house, and other places that have free WiFi. I can not get the phone to access any networks in order to connect. Could someone please help me try to figure this out.

    I just recently purchased a iPhone 4. I am using it as Prepaid for Verizon. I only get a certain amount of data time, and was trying to use the wifi at my house in order to do somethings online without using my prepaid data, but for some reason it will not pick up the wifi at all, and when i try all the different things I have been told to try it still does not work, how do I get the wifi to work?

    You didn't say what you have already tried, but if you haven't already done so, power-cycle your router (unplug it for 15 seconds then plug it back in), then on your phone go to Settings>General>Reset and tap Reset Network Settings, then try joining your wifi again.

  • Please help with try/catch

    Hello, I'm writing a program and I got surprised with the following. I've got the following try/catch block:
    try {
    String param = config.getConfigValue("db2.driver");
    if (param == null)
    // parameter not defined.
    throw new Exception("Parameter 'db2.driver' missing!");
    else
    Class.forName(param);
    catch (SQLException sqlEx) {
    // do something
    catch (Exception e) {
    System.out.println("*** ERROR loading driver..."); (1)
    finally {
    releaseDB2Resources();
    I know the program flow goes through the finally block, but it doesn't print the message (1). Why is that? I don't understand it. What am I doing wrong?
    Thanks in advance.

    A finally block always gets executed, so that's why the println always works there. The only reason why the println in the catch wouldn't work is if that exception wasn't thrown. If a config value is not there, it might be the null string "" instead of null. Try this:
    if (param.equals(""))
    throw new Exception("blah");
    You could also try:
    if (true)
    throw new Exception("blah");
    to make sure that the exception is caught where you think it should be.

  • Please help been try to do this for a month now!

    How do I take a sample I chopped and disburse the parts I chopped to different keys on my keyboard. I was informed I may want to purchase Phatmatik Pro or Recycle. Before I take this leap I would like to know is it necessary.
    Thanks
    E

    you can do this in the ESX24 sampler
    open the ESX, create a new Instrument, to the right of your instrument name press edit. After the edit window opens drag and drop your samples over top the desired keys on the keyboard.
    is this what you are looking for?

  • Problem inserting Blob through Oracle 9iAs

    Hai Everybody,
    I got a unique problem , i am trying to insert a blob object to the blob column. This is working fine when i am using JDeveloper 9.0.3 , but when i am using the same on 9iAS , the data is not evening inserting to the database. Please can any body help me how to solve this problem.
    This is the code used to insert into the database.
    if (resSet.next()) {
    oracle.sql.BLOB bCol = ((OracleResultSet)resSet).getBLOB(1);
    blobOutputStream = bCol.getBinaryOutputStream();
    byte[] bBuffer = new byte[bCol.getBufferSize()];
    int intBytesRead = 0;
    ByteArrayInputStream fis = new ByteArrayInputStream(byteValues);
    ErrorLog.log(" before the while loop ");
    while ((intBytesRead = fis.read(bBuffer)) != -1) {
    blobOutputStream.write(bBuffer,0,intBytesRead);
    blobOutputStream.close();
    // i am commiting the connection here
    conn.commit();
    conn.setAutoCommit(true);

    Hi !, you can find response of this answer in Oracle forums...
    http://forums.oracle.com/forums/forum.jsp?forum=99

  • I receive error when I try to insert Image to Oracle Database v.9i

    My Error is :
    java.sql.SQLException: ORA-00600: internal error code, arguments: [ttcgcshnd-1], [0], [], [], [], []
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:114)
    at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:208)
    at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:542)
    at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1311)
    at oracle.jdbc.ttc7TTC7Protocol.fetch(TTC7Protocol.java:797)
    at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:1608)
    at oracle.jdbc.driver.OracleStatement.doExecute(OracleStatement..java:1758)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1805)
    at oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java:410)
    and my code is:
    URL url = null;
         InputStream in = null;
         Statement stmt = null;
         OutputStream out = null;
         try {
         url = new URL("file://D:/MyJava~1/classes/javalogo.gif");
              in = url.openStream();
              stmt = con.createStatement();
              // Create the table
              stmt.execute ("create table ImageTable (count varchar2(20), image BLOB)");
              System.out.println("Table created ...");
              // create a blob entry in the table
              stmt.execute("insert into ImageTable values ('two', empty_blob())");
              stmt.execute("commit");
              String cmd = "select image from ImageTable for update";
    /* error this command/*
              ResultSet rset = stmt.executeQuery(cmd);
              System.out.println("Success execute command.");
              while (rset.next()) {
                   //get the Blob locator
                   blob = ((OracleResultSet)rset).getBLOB(1);
                   System.out.println("Get the BLOB locator");
              //get ready to accept binary file
              out = blob.getBinaryOutputStream();
              int chunk = blob.getChunkSize();
              System.out.print("The chunk size is " + chunk);
              byte buffer[]= new byte[chunk];
              int length;
              while ((length = in.read(buffer)) != -1) {
                   out.write(buffer, 0, length); //image file saved.
              con.close();
              out.close();
              stmt.close();
    thank you for your kind
         

    You should try using PreparedStatement instead of Statement while inserting the image - one of the methods like setBytes(. .), setBlob() or setBinaryStatement() of the PreparedStatement should do the trick..
    The setBytes( ) is inefficient in terms of memory -esp for large images -better is to use setBinaryStream( ).
    Shantanu

  • Please help me. I'm new to Oracle.

    Hello all
    I'm Sean and new to Oracle and wana purse learning Oracle Forms&Reports but to start I need to also learn Oracle DataBase as well.
    Please I know you're all busy but HELP me to fix this problem and start learning Oracle.
    I've installed oracle DB 10G. XE. without any problem and have been using it everyday BUT I just installed Oracle SQL Dev v. 1.2.1.... and can't creat a new connection. (it's all installed in my compaq laptop using Win XP SP 3).
    I've been reading all the comments in forums but I'm still stuck. PLEASE SOME ONE HELP ME.
    Learning from all you guys comment I looked at my Listener.ora and it looks like this:
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)
    (PROGRAM = extproc)
    (SID_DESC =
    (SID_NAME = CLRExtProc)
    (ORACLE_HOME = C:\oraclexe\app\oracle\product\10.2.0\server)
    (PROGRAM = extproc)
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
    (ADDRESS = (PROTOCOL = TCP)(HOST = Shawn_COMPAQ)(PORT = 1521))
    DEFAULT_SERVICE_LISTENER = (XE)
    and my sqlnet.ora looks like this:
    # This file is actually generated by netca. But if customers choose to
    # install "Software Only", this file wont exist and without the native
    # authentication, they will not be able to connect to the database on NT.
    SQLNET.AUTHENTICATION_SERVICES = (NTS)
    The tnsnames.ora looks like this:
    XE =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = SHAWN_COMPAQ)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = XE)
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    ORACLR_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC_FOR_XE))
    (CONNECT_DATA =
    (SID = CLRExtProc)
    (PRESENTATION = RO)
    from looks of it comparing to what I have seen in ppl's comments and copy&past of files in forums, my 3 files all looks weird and I guess it missing lot of things.
    when I try to create a new connection to see built-in schema (HR) all though it's unlocked but sql dev can't establishes a connection.
    In New \ Select database connection window for following fields iI put:
    Hostname = localhost:1521:orcl (I 've tried just putting localhost)
    Port = 1521
    SID = orcl
    In my browser when I am in home page of DB 10g XE the URL reads: http://127.0.0.1:8080/apex/f?p=4500:1000:4313426409493576
    When i put hostname = localhost (or either 127.0.0.1) and port = 1521 and SID = orcl, I'm getting error :
    status: failure-listener refused the connection with following error - ORA-12505, TNS: listener doesn't currently know of SID given in connect descriptor The connection descriptor used by client was: localhost:1521:orcl .
    When I just change the Port to 8080 I get the error:
    Status: failure-Io Exception: Got minus one from a read call.
    By default DB 10g XE installed in: C:\oraclexe\app\oracle\product\10.2.0\.............
    and all the mentioned files (3 files mentioned above) are in: C:\oraclexe\app\oracle\product\10.2.0\server\NETWORK\ADMIN
    Please I know you're all busy but HELP me to fix this problem.
    God bless you.
    tnx
    Sean

    Thanks a lot.
    Yes. It works well now.
    In it's documentation it says put orcl for SID but never thought to try default xe.
    You're the man.
    tnx

  • Please Help I'm new to this! Oracle 8.1.5

    This is my fist time with Oracle. :-)
    I have just installed Oracle 8.1.5 exactly as the install instruction says on the Cd. (Solaris 8 x86).
    When I try to start it I get this message:
    $ dbstart
    SQL*PLUS: Release 8.1.5.0.0
    (c) Copyright bla bla bla
    SQL> Connected to an idle instance.
    SQL> ORACLE instance started.
    Total System Global Area 35028368 bytes
    Fixed Size 64912 bytes
    Variable Size 18014208 bytes
    Database Buffers 16777216 bytes
    Redo Buffers 172032 bytes
    ORA-00205: error in identifying controlfile, check alert log for more info
    SQL> Disconnected from Oracle8i Enterprise Edition Rel....
    With the Partitioning and Java options
    PL/SQL Release 8.1.5.0.0 - Production
    Database "ORCL" warm started.
    $
    I can't logon to the database as anything (eg. demo, scott, sys, system).
    Controlfile and alertlog? Where do I find these files? Any suggestions?
    Lars-Inge

    I don't know what the install instructions say but this sounds to me as if you installed oracle without the sample database so that there is no instance to start.
    Did you create a new database after install?
    Please open <OracleHome>\admin\<SID>\pfile\init.ora and see what the line control_files = ... says.
    For me it's
    control_files = ("F:\oracle\oradata\ENTW\control01.ctl", "F:\oracle\oradata\ENTW\control02.ctl", "F:\oracle\oradata\ENTW\control03.ctl")
    Make sure those three files exist.

  • Cannot insert fieldset inside Fluid Grid div (Was: Please help)

    Please help..I couldnot insert fieldset inside FG div.(I couldnot find the fieldset while viewing in the browser also.)

    A <fieldset> is a <form> element.    Copy and paste this form code into a new, blank document.  Save and preview in browsers.
    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>HTML5 Form with jQuery Validation</title>
    <!--[if lt IE 9]><script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
    <!--JQUERY LATEST-->
    <script src="http://code.jquery.com/jquery-latest.min.js">
    </script>
    <!--JQUERY VALIDATE-->
    <script src="http://ajax.aspnetcdn.com/ajax/jquery.validate/1.11.1/jquery.validate.min.js">
    </script>
    <style>
    /**BEGIN FORM STYLES**/
    #contact {
    font-size: 14px;
    width:95%;
    margin: 0 auto; /**adjust margins as needed**/
    background: #FFF;
    border: 2px groove #999;
    padding: 2%;
    #contact fieldset {
    margin-bottom:5px;
    background:#CCC;
    #contact legend {
    padding: 8px;
    background: #000;
    font-weight: bold;
    color: #FFF;
    line-height: 1.5;
    /**wrap form lables and fields inside ordered lists for better web accessibility**/
    #contact ol {
    list-style:none;
    margin:0;
    padding:0}
    #contact li {
    padding:5px;
    margin: 0;
    clear: left;
    #contact label{
    display:inline-block;
    float:left;
    line-height: 23px; /**lines up labels with fields**/
    width:15%;
    font-size: 12px;
    text-align:right;
    margin-right: 10px; /*space between labels, fields*/
    #contact textarea,
    #contact input[type=text],
    #contact input[type=email],
    #contact input[type=number] {
    width: 45%; /**same width on fields**/
    padding: 5px;
    color:#333;
    font-family:Arial, Helvetica, sans-serif;
    font-size: 12px;
    #contact select {width:47%}
    /**field background on focus**/
    #contact input:focus,
    #contact input:active,
    #contact textarea:focus,
    #contact textarea:active,
    #contact select:focus,
    #contact select:active
    {background-color: #FFC;}
    #contact label.error {
        line-height:1.5;
        color:#F00;
        background:#FFC;
        padding:3px;
        box-shadow:1px 2px 3px #333
    </style>
    </head>
    <body>
    <p>Basic Contact Form</p>
    <!--begin form-->
    <form id="contact" action="form-processing-script.php" method="post">
    <fieldset>
    <legend>Required Fields:</legend>
    <ol>
    <li><label for="first_name">Name:</label>
    <input name="first_name" id="first_name" type="text" required placeholder="First"></li>
    <li><label for="last_name">Last:</label>
    <input name="last_name" id="last_name" type="text" required placeholder="Last"></li>
    <li><label for="e_mail">E-mail:</label>
    <input name="e_mail" id="e_mail" type="email" required placeholder="[email protected]"></li>
    <li><label for="selectTest">Select One:</label>
    <select name="selectTest" id="selectTest" size="4" required title="Please select something!">
    <option value="1">Saab</option>
    <option value="2">Audi</option>
    <option value="3">Fiat</option>
    <option value="4">BMW</option>
    </select></li>
    </ol>
    </fieldset>
    <fieldset>
    <legend>Optional Fields:</legend>
    <ol>
    <li>
    <label for="phone">Phone:</label>
    <input name="phone" id="phone" type="number" placeholder="(area code) 123-4567" />
    </li>
    <li><label for="subject">Subject:</label>
    <input name="subject" id="subject" type="text" />
    </li>
    <li><label for="message">Message:</label>
    <textarea id="message" name="message" placeholder="remarks"></textarea>
    </li>
    <li><input name="submit" type="submit" value="Submit">
    </li>
    </ol>
    </fieldset>
    </form>
    <!--end form-->
    <!--form validation-->
    <script>
    $(document).ready(function() {
        $("#contact").validate();
        $("#selectTest").validate();
    </script>
    </body>
    </html>
    Nancy O.

  • My sound won't work on my ipod 5. I plugged the speakers in and it works fine.  When the headphones aren't plugged in and I turn the volume up it says that they are plugged in.  Please help !

    my sound won't work on my ipod 5. I plugged the speakers in and it works fine.  When the headphones aren't plugged in and I turn the volume up it says that they are plugged in.  Please help !

    - Try cleaning out/blowing out the headphone jack. Try inserting/removing the plug a dozen times or so. (this was already sugested) There is a little switch in the headphone jack that disconnects the speaker when the headphone jack is inserted.
    Try the following to rule out a software problem
    - Check also Settings > General > Accessibility > Hearing. Make sure that the sound balance is not set all the way to "R".
    - Reset the iPod. Nothing will be lost
    Reset iPod touch: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    - Reset all settings
    Go to Settings > General > Reset and tap Reset All Settings.
    All your preferences and settings are reset. Information (such as contacts and calendars) and media (such as songs and videos) aren’t affected.
    - Restore from backup
    - Restore to factory settings/new iPod.
    - Make an appointment at the Genius Bar of an Apple store. Seems you have a bad headphone jack.
    Apple Retail Store - Genius Bar
    If not under warranty Apple will exchange your iPod for a refurbished one for this price. They do not fix yours.
    Apple - iPod Repair price                  
    A third-party place like the following will replace the jack for less. Google for more.
    iPhone Repair, Service & Parts: iPod Touch, iPad, MacBook Pro Screens
    Replace the jack yourself
    iPod Touch Repair – iFixit

Maybe you are looking for

  • Imovie will not render photos with ken burns effect

    I have started to produce a video and have tried to import photos from both iphotos and straight from desktop however when i do this the red bar showing the state of rendering does not move. The photo will not render and therfor i am unable to use th

  • KVM switchs, any problems with MSI boards???

    Hi Everybody!! X-Abit fan here, I have a 2 port Belkin DVI KVM switch. I had trouble with Asus and kvm's so I'm asking ahead of time. I built a couple of MSI boxes in the P3 days and had good experience. I'm glad to here Quality is back as a priority

  • Itunes credit card fraud

    Someone stole my debit card number and chareged $870 worth of itunes. I can not get any help from Apple or Itunes. My bank is doing what it can, but why can't Apple help? Any suggestions?

  • ST2540 and VxDMP

    Hi: I've a customer with the following config: V880 with 2 x F/C controller ST2540 with 2 x controller Solaris 10 U4 EIS DVD April 09 Storage Foundation 5.0 patched with EIS DVD April 09 For one reason or another, mpxio was not used. I created a 2540

  • Adobe Photoshop Elements 9 will not recognize Epson V600 Photo scanner  for film ?

    For some reason the WIA support in PE9 will only recognize the scanner for reflective prints not film, why ? But, in the PE 6 the Epson V600 scanner  is recognized for film scanning,, in professional mode  and automatic. Any clues ? Message was edite