How convert integer into string

Hi,
I need to convert answer3 from double into String
answer3 = Double.parseDouble(dij3)/(1 + Math.pow(( Double.parseDouble(tesside_luas_i) / Double.parseDouble(tesside_luas_j) ),0.5847));

Now the integer value is string but why i cannot get valur from my servlet to my web page
package net.mybizaid.isodms.servlet;
import java.io.*;
import java.util.*;
import java.sql.*;
import javax.servlet.*;
import javax.servlet.http.*;
import net.mybizaid.isodms.*;
public class SPLDataInputServlet extends HttpServlet {
     public void doPost (HttpServletRequest request, HttpServletResponse response)
     throws IOException, ServletException
System.out.println( "******************** Calculation Servlet ******************" );
               String dij     ;
               String population_i ;
               String population_j ;
               String project_name = "";
               String project_status = "";
               double answer;
               String handler = "";
               String url                    = "";
               double answer3;
               String dij3 ="";
               String tesside_luas_i ="";
               String tesside_luas_j ="";
               double answer2;
               String dij2 ="";
               String luas_i ="";
               String luas_j ="";
               String counter                    = "";
               String i                                   = "";
               handler                          = request.getParameter( "handler" );
               dij                    = request.getParameter("dij");
               population_i               = request.getParameter("population_i");
               population_j               =     request.getParameter( "population_j");
               project_name               =     request.getParameter( "project_name");
               project_status               =     request.getParameter( "project_status");
               dij2                    = request.getParameter("dij2");
               luas_i               = request.getParameter("luas_i");
               luas_j               =     request.getParameter( "luas_j");
               dij3                    = request.getParameter("dij3");
               tesside_luas_i               = request.getParameter("tesside_luas_i");
               tesside_luas_j               =     request.getParameter( "tesside_luas_j");
               HttpSession session = null;
               session = request.getSession(true);
               int cnt = counter != null && !counter.equals("") ? Integer.parseInt(counter) : 0;
               int ii = i != null && !i.equals("") ? Integer.parseInt(i) : 0;
//Tesside
if (handler != null && !handler.equals( "" ) && handler.equals( "cal3" ))
               try
System.out.println("The DIJ3 value is :"+dij3);
System.out.println("The tesside_luas_i value is :"+tesside_luas_i);
System.out.println("The tesside_luas_j value is :"+tesside_luas_j);
                    answer3 = Double.parseDouble(dij3)/(1 + Math.pow(( Double.parseDouble(tesside_luas_i) / Double.parseDouble(tesside_luas_j) ),0.5847));
                    String str = String.valueOf( answer3 );
System.out.println("The answer value is :"+str);
                     url = "/jsp/model/tessideAnswer.jsp";
                     dispatchErrorMsg( request, response, url, "" );
          catch (Exception e)
                    request.setAttribute("pd.errorMessage", e.getMessage());
                    dispatchErrorMsg( request, response, "/jsp/Error.jsp", e.getMessage() );
//PotensiPasaran
if (handler != null && !handler.equals( "" ) && handler.equals( "cal2" ))
               try
System.out.println("The DIJ2 value is :"+dij2);
System.out.println("The luas_i value is :"+luas_i);
System.out.println("The luas_j value is :"+luas_j);
                    answer2 = Double.parseDouble(dij2)/(1 + Math.sqrt(( Double.parseDouble(luas_i) / Double.parseDouble(luas_j) )));
System.out.println("The answer value is :"+answer2);
                     url = "/jsp/model/potensiPasaranAnswer.jsp";
                     dispatchErrorMsg( request, response, url, "" );
          catch (Exception e)
                    request.setAttribute("pd.errorMessage", e.getMessage());
                    dispatchErrorMsg( request, response, "/jsp/Error.jsp", e.getMessage() );
//Reilly
     if (handler != null && !handler.equals( "" ) && handler.equals( "add" ))
               try
                    System.out.println("The DIJ value is :"+dij);
                    System.out.println("The population_i value is :"+population_i);
                    System.out.println("The population_j value is :"+population_j);
                    answer = Double.parseDouble(dij)/(1 + Math.sqrt(( Double.parseDouble(population_i) / Double.parseDouble(population_j) )));
System.out.println("The answer value is :"+answer);
                     url = "/jsp/model/reillyAnswer.jsp";
                     dispatchErrorMsg( request, response, url, "" );
          catch (Exception e)
                    request.setAttribute("pd.errorMessage", e.getMessage());
                    dispatchErrorMsg( request, response, "/jsp/Error.jsp", e.getMessage() );
     public void doGet (HttpServletRequest request, HttpServletResponse response)
     throws IOException, ServletException
          doPost(request, response);
     }//end doGet
     public void dispatchErrorMsg(HttpServletRequest req, HttpServletResponse res,
                                                       String target, String message)
          try
               RequestDispatcher dispatcher = getServletContext().getRequestDispatcher(target);
               req.setAttribute("eshop.ErrMessage",message);
               dispatcher.forward(req, res);
          catch (Exception e)
               System.err.println( e.getMessage() );
}//end class

Similar Messages

  • How to convert byte into string

    can any tell me how to convert byte into string
    when im an debugging thid code in eclipse it shows the result in integer format instead of string but in command prompt it is showing result in string format..........plz help
    package str;
    import java.io.*;
    public class Testfile {
    public static void main(String rags[])
    byte b[]=new byte[100];
    try{
    FileInputStream file=new FileInputStream("abc.txt");
    file.read(b,0,50);
    catch(Exception e)
         System.out.println("Exception is:"+e);
    System.out.println(b);
    String str=new String(b);
    System.out.println(str);
    }

    Namrata.Kakkar wrote:
    errors: count cannot be resolved and Unhandled exception type Unsupported Encoding Exception.
    If i write an integer value instead of "count" then Unhandled exception type Unsupported Encoding Exception error is left.This is elementary. You need to go back to [http://java.sun.com/docs/books/tutorial/|http://java.sun.com/docs/books/tutorial/] .

  • How to convert filenames into strings

    im listing a lists of files
    using the method listFiles() which returns me data of type File which are actually
    all files in the dir.
    may i know how do i convert the filenames returned to become strings
    so that i can manipulate the filenames as string format instead of file format?
    thanks for any help suggested!

    Im encountering a problem now before i can test the method...
    This the current problem i had :
    i only showed part of the codes here:
    File[] listing = Dir.listFiles();
    String[] lists;
    for (int i=0; i < listing.length; i++)
    lists[i] = new String(listing.getName());
    out.print(lists[i] + "<br>");
    The error i had:
    variable lists might not have been initialized
    lists[i] = new String(listing[i].getName());
    ^
    1 error
    I forgot how to deal with String array...
    I declare as String[] lists; coz i do not know the size of the array...
    how do i assign the filenames to strings?
    Please kindly help..thanks a lot!

  • Convert document into string with unicode

    I want to convert my document into string with all <,>,& to be converted into <, >, and &. When I am doing transformation, I am getting <,> etc.
    Can anybody suggest me how to do that.
    regards,
    Ranjan

    I don't know of any way to tell the parser to convert is for you, you'll have to replace the characters yourself after you got the string from the parser.
    Aviran
    http://www.aviransplace.com

  • Convert Inputstructure into String and store into DB2

    Hello All
    My requirement is I want to convert total input structure into string then stored into database single field as clob. Can anyone suggest me how will i retive input structor, is there any user defined function will i write or is there any inbuilt functionality in SAP PI. Plese suggest me
    Thanks&Regards,
    VenkatK

    Hi Swarup / Shamly
      My input structure is nearly 60 fields. Sample Structure
    <?xml version="1.0" encoding="utf-8"?>
    <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" SOAP-ENV:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
          <SOAP-ENV:Body>
             <create xmlns="urn:MySoapServices">
                <PurchaseOrder>
                   <BuyerDetails>
                        <Organization>University of Washington</Organization>
                        <Authorized_Person>
                             <FisrtName>Cease</FisrtName>
                             <LastName>Wayne</LastName>
                        </Authorized_Person>
                        <Street>Savery Hall</Street>
                        <City>Seattle</City>
                        <State>Wa</State>
                        <Zip>98195</Zip>
                        <Contact_Numbers>
                                  <Phone>888-846-6638</Phone>
                                  <Fax>212-629-1158</Fax>
                        </Contact_Numbers>
                        <Email>hidekiu.washington.edu</Email>
                   </BuyerDetails>
                   <SupplierDetails>
                        <Organization>Thomas Industrial Network</Organization>
                        <Authorized_Person>
                             <FisrtName>Cease</FisrtName>
                             <LastName>Wayne</LastName>
                        </Authorized_Person>
                        <Street>5 Penn Plaza, 10th Floor</Street>
                        <City>New York</City>
                        <State>NY</State>
                        <Zip> 10001</Zip>
                        <Contact_Numbers>
                                  <Phone>888-846-6638</Phone>
                                  <Fax>212-629-1158</Fax>
                        </Contact_Numbers>
                   </SupplierDetails>
                   <PurchaseOrderInformation>
                        <Order_Number>4556</Order_Number>
                        <Order_Delivery_Date>10-10-2006</Order_Delivery_Date>
                        <PO_Type>Finished</PO_Type>
                        <status>PO sent</status>
                   </PurchaseOrderInformation>
                   <Address>
                        <Shipping_Address>
                             <Organisation>University of Washington</Organisation>
                        <Authorized_Person>
                             <FisrtName>Cease</FisrtName>
                             <LastName>Wayne</LastName>
                        </Authorized_Person>
                             <Street>Savery Hall</Street>
                             <City>Seattle</City>
                             <State>Wa</State>
                             <Zip>98195</Zip>
                             <Email>hidekiu.washington.edu</Email>
                        </Shipping_Address>
                        <Billing_Address>
                             <Organisation>University of Washington</Organisation>
                        <Authorized_Person>
                             <FisrtName>Cease</FisrtName>
                             <LastName>Wayne</LastName>
                        </Authorized_Person>
                             <Street>Savery Hall</Street>
                             <City>Seattle</City>
                             <State>Wa</State>
                             <Zip>98195</Zip>
                             <Email>hideki</Email>
                        </Billing_Address>
                   </Address>
                   <Payment_Terms>
                        <Purchase_Order>
                             <PO_Number>456</PO_Number>
                             <Payment_Type>Bank</Payment_Type>
                             <Payment_Type_PO>
                                  <Bank>
                                       <BankName>Citibank</BankName>
                                       <AccountNumber>654987456</AccountNumber>
                                       <BranchCode>564</BranchCode>
                                  </Bank>
                                  <Credit_Card>
                                       <Payment_Type_CC>VISA</Payment_Type_CC>
                                       <CC_Number>1234 4567 7890 0123</CC_Number>
                                       <CC_Expire_Date>10-12-2012</CC_Expire_Date>
                                  </Credit_Card>
                             </Payment_Type_PO>
                        </Purchase_Order>
                        <Currency>USD</Currency>
                   </Payment_Terms>
                   <Purchase_Items>
                        <Item>
                             <Part_Name>6 foot wide 5 foot high cabinet</Part_Name>
                             <Quantity>9</Quantity>
                             <Description>Cabinets of systems</Description>
                        </Item>
                        <Item>
                             <Part_Name>6 foot wide shelves</Part_Name>
                             <Quantity>6</Quantity>
                             <Description>Shelves for books</Description>
                           </Item>
                   </Purchase_Items>
              </PurchaseOrder>           
             </create>
          </SOAP-ENV:Body>
       </SOAP-ENV:Envelope>
               I need to store whole XML structure (Including  XML version) into Database single field as a clob. not  field values. Please help me out from this issue.

  • Cannot convert integer to string in ARM project?

    Hi all,
    I'm getting started with an ARM project in LabVIEW and I'm having trouble with a simple example: I'm reading integer values from an accelerometer and printing them to the front panel. I cannot, however, convert any of the integers to a string and display the converted value in a string indicator on the front panel. I can't find this problem listed as a limitation of the string methods in the ARM module: http://zone.ni.com/reference/en-XX/help/372459C-01​/lvarmhelp/arm_bd_strings/ Any ideas? A simple example demonstrating the problem is attached (although I suppose you can only run it without modifications if you have an accelerometer...)
    Thanks!
    Mike
    Attachments:
    problem_example.vi ‏18 KB

    Did you try the format into string function?
    Just a thougt
    Tim
    Johnson Controls
    Holland Michigan

  • Convert Table into string, No FM is working good for this

    Hi all,
    i want to convert a table into string, but while convert, i found out that the string has special lenght , and i am getting only some rows of the table  wihle converting, even if i am using concatinate, i got the same problem,
    please let me know if there is a way to convert all the table into string and not a littel bit of it.
    BR

    I remember that you were facing the problem with the below function module
    types:begin of ty_string,
          field1 type char1024,
          end of ty_string.
    data:it type table of ty_string.
    data:wa type ty_string.
    data:out type string,
    line type string,
    rest type string.
    do 100 times.
      do 1024 times.
        concatenate 'A' wa-field1 into wa-field1.
      enddo.
      append wa to it.
    enddo.
    call function 'CONVERT_TABLE_TO_STRING'
      exporting
        i_tabline_length = '1024'
      importing
        e_string         = out
      tables
        it_table         = it.
    For me the variable out holds 102400 characters.

  • How to convert integer to string?

    for example :
    int num = 1;
    String num_str;
    how to convert the value of num variable to string .

    have u ever checked the documentation of WTK
    one method called valueOf
    will help u
    alpesh

  • How To Convert XML into String?

    Hi,
    I have a requirement in which I need to convert the data from XML file to string.
    E.g.
       <Drawing>
          <DrawingSpecification>
             <Header>
                <SoldTo>SDN</SoldTo>
                <SoldToName>SAP</SoldToName>
                <Date/>
                <Manager>CEO</Manager>
                < Plant>INDIA</Name>
                <Items>
                   <Item>
                       < MaterialNumber>MatNum12</ MaterialNumber>
                       <ProductNumber>ProName12</ ProductNumber>
                   </Item>
               </Items>
               < ClientId>ClientID123</ ClientId>
               <FileName>FileName123</FileName>
               <Type/>
               < TemplateName/>
          </DrawingSpecification>
          <Image contentType=""/>
       < /Drawing>
    Output should be like:
       < File>
          < Content> SDN SAP CEO INDIA MatNum12 ProName12 ClientID123 FileName123</Content>
       < /File>
    Please provide solution for the same.
    Thanks,
    Abhishek.

    what about something like this
    package test;
    import java.io.File;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import org.w3c.dom.Document;
    import org.w3c.dom.Node;
    import org.w3c.dom.NodeList;
    public class Test {
         public static void main(String args[]) throws Exception {
              DocumentBuilderFactory docBuilderFactory = DocumentBuilderFactory.newInstance();
              DocumentBuilder docBuilder = docBuilderFactory.newDocumentBuilder();
              Document doc = docBuilder.parse(new File("test.xml"));
              StringBuffer buffer = new StringBuffer();
              appendChildren(buffer, doc.getChildNodes());
              System.out.println(buffer.toString());
         private static void appendChildren(StringBuffer buffer, NodeList list) {
              for (int i = 0; i < list.getLength(); i++) {
                   Node node = list.item(i);
                   if (node.getNodeValue() != null) {
                        if (node.getNodeValue().trim().length() > 0) {
                             buffer.append(node.getNodeValue()).append("|");
                   appendChildren(buffer, node.getChildNodes());
    ...btw: IMHO the use of this forum is to get an answer to an particular question - not to ask for complete solutions - create the solution yourself an ask if you are stuck somewhere (with a bit of research (google) it is not hard to find a solution for your problem)
    regards franz
    ...close thread if question is answered

  • How to convert Objext[] into String[] or any other object

    Hi,
    I've happened to come across a weird problem in java 1.6. I am sure it was alright before. Here is what I want to do and the result is
    Exception in thread "main" java.lang.ClassCastException: [Ljava.lang.Object; cannot be cast to [Ljava.lang.String;
        Vector toVec = new Vector();
        StringTokenizer addrs = new StringTokenizer(addressesTo,";");
        while(addrs.hasMoreTokens()) {
            toVec.add(new String(addrs.nextToken()));
    String[] to;
    Object[] obj = toVec.toArray();
    to = (String[])obj;
    the tokenizer has at least 1 item. I am sure of it.
    Can anybody explain this phenomena?
    Thanks.

    No, you did not use identical code before, or if you did, you got the same results.
    String[] str[] = (String[])list.toArray(); // won't work, as toArray() returns Object[]
    String[] str[] = (String[])list.toArray(new String[0]); // works, creates a new String[]
    String[] str[] = (String[])list.toArray(newString[list.size()]); // works, returns a reference to the array created inline

  • Converting objects into Strings

    How would someone convert an object of say (String, int, double, String) into a readable string. I tried the toString() method but all I get is something like this
    Student@1f12c4e

    ..I'm not sure I understand "how" to override. The whole point of this project is to use quicksort on a list of students, unfortunately all I get is the address whenever I use the .toStrings() method.
    Here's what I have, any help would be greatly appreciated-so very close
    import cs1.Keyboard;
    import java.io.*;
    import java.util.*;
    public class StudentTraverse
    public static void main(String[] args)
    String newName;
    int newSocial;
    double newGPAs;
    String newMajors;
    System.out.println("How many Students would you like to add");
    Student newStudent;
    StudentList12 WORK = new StudentList12();
    int total = Keyboard.readInt();
    for(int number = total; number > 0; number--)
    System.out.println("Name?");
    newName = Keyboard.readString();
    System.out.println("Social?");
    newSocial = Keyboard.readInt();
    System.out.println("GPA?");
    newGPAs = Keyboard.readDouble();
    System.out.println("Major?");
    newMajors = Keyboard.readString();
    newStudent = new Student(newName, newSocial, newGPAs, newMajors);
    System.out.println("Inserting: "+newStudent.toString());
    WORK.add(newStudent);
    for(total = 0; total < WORK.size(); total++)
    System.out.println("top" total": "+WORK.top(total).toString());
    try
    BufferedReader in = new BufferedReader(new FileReader("LIST.out"));
    while (in.ready())
    // Print file line to scree
    System.out.println (in.readLine());
    in.close();
    catch (Exception e)
    System.err.println("File input error");
    public class StudentNode
    public Student student;
    public StudentNode next;
    public StudentNode()
    next = null;
    student = null;
    public StudentNode(Student d, StudentNode n)
    student = d;
    next = n;
    public void setNext(StudentNode n)
    next = n;
    public void setData(Student d)
    data = d;
    public StudentNode getNext()
    return next;
    public Student getData()
    return data;
    public String toString()
    return ""+data;
    public StudentNode(Student newStudent)
    METHOD NAME: StudentNode
    AUTHOR:
    DATE OF CREATION: Nov 20, 2004
    DATE OF UPDATES: Nov 28, 2004
    PURPOSE: Acts as a node for the Student list
    ALGORITHM:Acts as node for the list
    INSTANCE VARIABLES: none
    student = newStudent;
    next = null;
    public class Student
    private String name;
    private int social;
    private double GPA;
    private String Major;
    public Student(String newName, int newSocial, double newGPAs, String newMajors)
    METHOD NAME: Student
    AUTHOR:
    DATE OF CREATION: Nov 20, 2004
    DATE OF UPDATES: Nov 28, 2004
    PURPOSE: The actual Student class, determines what is allowed in the array
    ALGORITHM:Declare what variables will be needed for the program
    INSTANCE VARIABLES: String name, int social, double GPA, String Major
    name = newName;
    social = newSocial;
    GPA = newGPAs;
    Major = newMajors;
    import java.io.*;
    import cs1.Keyboard;
    import java.io.BufferedWriter;
    import java.util.*;
    public class StudentList12
    private StudentNode list;
    static int i = 0;
    public StudentList12()
    METHOD NAME: StudentList12
    AUTHOR:
    DATE OF CREATION: Nov 20, 2004
    DATE OF UPDATES: Nov 28, 2004
    PURPOSE: Declares the Node
    ALGORITHM:Declare the Node
    INSTANCE VARIABLES: none
    list = null;
    public boolean isEmpty()
    return list == null;
    public int size()
    return i;
    public void add(Student newStudent)
    METHOD NAME: add
    AUTHOR:
    DATE OF CREATION: Nov 20, 2004
    DATE OF UPDATES: Nov 28, 2004
    PURPOSE: Let's users add objects to the array of objects
    ALGORITHM:Traverses the current list and adds object to the end
    INSTANCE VARIABLES: none
    list = new StudentNode(newStudent, list);
    i++;
    current = current.next;
    current.next = node;
    public Student remove()
    if(isEmpty())
    return null;
    StudentNode tmp = list;
    list = tmp.getNext();
    i--;
    return tmp.getData();
    public void insertEnd(Student newStudent)
    if(isEmpty())
    add(newStudent);
    else
    StudentNode t = list;
    while(t.getNext() != null)
    t=t.getNext();
    StudentNode tmp = new StudentNode(newStudent, t.getNext());
    t.setNext(tmp);
    i++;
    public Student removeEnd()
    if(isEmpty())
    return null;
    if(list.getNext() == null)
    return remove();
    StudentNode t = list;
    while(t.getNext().getNext() != null)
    t = t.getNext();
    Student newStudent = t.getNext().getData();
    t.setNext(t.getNext().getNext());
    i--;
    return newStudent;
    public Student top(int n)
    StudentNode t = list;
    for(int i = 0; i <n && t != null; i++)
    t = t.getNext();
    return t.getData();
    public void writeToFile(int n)
    int z = n;
    try
    PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter("LIST.out")));
    for(int counter = z; counter >= 0; counter--)
    System.out.println(counter);
    out.close();
    catch(Exception e)
    System.err.println("Couldn't Write File");
    try
    PrintWriter out = new PrintWriter(new BufferedWriter(new FileWriter("LIST.out")));
    out.write(list.toString());
    out.close();
    catch(Exception e)
    System.err.println("Couldn't Write File");
    }

  • Can't convert int into String

    I'm trying to code a GUI that will give an employee id, name, salary, hire date, and vac days.
    public String getFieldValue(int fieldIndex) {
              switch (fieldIndex){
              case 0: return employeeID;
              case 1: return firstName;
              case 2: return lastName;
              case 3: return empIndicator;
              case 4: return salary;
              case 5: return hireDate;
              case 6: return vacDate;
              return null;
    My salary and vacDate are double and int. How do I display all the fields?
    Thanks

    I would use enums here, not magic numbers.
    Are you trying to extract the text held in JTextFields? If so, perhaps returning String is all you need. This you can parse via the wrapper classes (i.e., Integer.parseInt(...) and Double.parseDouble(...))

  • Multiplatform: how convert int into byte[]???

    Hi all,
    I need to convert an int value into an array of bytes. An int is represented by 4 bytes, but the problem is that depending on the platform, the most significant byte is the first or the last, so if you convert it directly, like:
    int i = 5;
    byte b[] = new byte[4];
    b[0] = (byte)( (i & 0xff000000) >>> 24);
    b[1] = (byte)( (i & 0x00ff0000) >>> 16);
    b[2] = (byte)( (i & 0x0000ff00) >>> 8);
    b[3] = (byte)( (i & 0x000000ff) );
    you cannot export it to another platfroms.
    Thank you in advance.

    Come on, nobody knows how to detect the byte order in a given platform?
    I've been all the day dealing with this, which means all day without producing.
    Please, it�s very urgent.
    Thank you again.

  • How write integer into a byte[]

    How to use dataoutputstream to write an integer to one byte[];

    http://java.sun.com/j2se/1.3/docs/api/java/io/DataOutputStream.html#write(int)
    yourDataOutputStream.write(int)

  • LOB : how convert CLOB into BLOB

    This code doesn't work : ORA-06502: PL/SQL: numeric or value error: hex to raw conversion error.
    declare
    vCLOB CLOB := empty_clob();
    vBLOB BLOB := empty_blob();
    begin
    dbms_lob.createTemporary(vCLOB,TRUE);
    dbms_lob.open(vCLOB, DBMS_LOB.LOB_READWRITE);
    -- Put data into CLOB
    l_length := dbms_lob.getlength(vCLOB);
    dbms_lob.read(vCLOB,l_length,1,buffer);
    dbms_lob.createTemporary(vBLOB,TRUE);
    dbms_lob.open(vBLOB, DBMS_LOB.LOB_READWRITE);
    dbms_lob.write(vBLOB,l_length,1,buffer);
    dbms_lob.close(vBLOB);
    dbms_lob.freeTemporary(vBLOB);
    dbms_lob.close(vCLOB);
    dbms_lob.freeTemporary(vCLOB);
    Thanks.

    You can use my procedure
    create or replace procedure CLOB2BLOB (p_clob in out nocopy clob, p_blob in out nocopy blob) is
    -- transforming CLOB &#226; BLOB
    l_off number default 1;
    l_amt number default 4096;
    l_offWrite number default 1;
    l_amtWrite number;
    l_str varchar2(4096 char);
    begin
    begin
    loop
    dbms_lob.read ( p_clob, l_amt, l_off, l_str );
    l_amtWrite := utl_raw.length ( utl_raw.cast_to_raw( l_str) );
    dbms_lob.write( p_blob, l_amtWrite, l_offWrite,
    utl_raw.cast_to_raw( l_str ) );
    l_offWrite := l_offWrite + l_amtWrite;
    l_off := l_off + l_amt;
    l_amt := 4096;
    end loop;
    exception
    when no_data_found then
    NULL;
    end;
    end;
    Best regards, Victor

Maybe you are looking for

  • How to include in Version 10.1.3.x?

    The following construction i use in my first project in the new version (Menu1.inc) <f:facet name="menu1"> <af:menuTabs var="menuTab" value="#{menuModel.model}"> <f:facet name="nodeStamp"> <af:commandMenuItem text="#{menuTab.label}" action="#{menuTab

  • Cannot find the SCA files on server

    Hello, We're currently attempting NWDI usage. I was following the tutorial regarding track usage. I've created a track and my own software component. I have defined dependencies for my software component as I was told in the manual. Now when I saved

  • What is the post code of phillipines

    what is the post code of the phillipines

  • My iphone 5 shut down random

    My iphone 5 random shut down , this time is 2 time it shut down by itself , I don't known why , I have to press and hold power button some Seccond then it come back , ????? please some one tell

  • Stopping JTabbedPane tab change.

    I was wondering if it was possible to stop tab changes on a JTabbedPane. Right now I am creating an applet with a JTabbedPane and if you click on another tab of the JTabbedPane I am able to capture the event of the change and perform an action using