Converting byte[] to unicode , help needed.

need help, folks.
i need to convert byte[] to unicode in byte[] form
say i already loaded bunch of data
byte[] bytes = {........} //bunch array of bytesand i read in the bytes as a stream in the native form.
ByteArrayInputStream stream = new ByteArrayInputStream(bytes);
InputStreamReader isr = new InputStreamReader(stream,"GB18030");how do i get the bytes back in unicode ? i've been trying all kinds of methods, but doesnt seems to get what i want. i'm novice programmer, someone pls guide me ? thx.

            String s ;
          StringBuffer buffer = new StringBuffer();
          try {
               ByteArrayInputStream stream = new ByteArrayInputStream(bytes);
               InputStreamReader isr = new InputStreamReader(stream, "GB18030");
               Reader in = new BufferedReader(isr);
               int ch;
               while ((ch = in.read()) > -1) {
               buffer.append((char)ch);
               in.close();
               s = buffer.toString();
               bytes = s.getBytes("UnicodeLittle");
               out.write(bytes);
          } catch (IOException e) {
               e.printStackTrace();
               //return null;
          }ah, nvm, i found a better solution to it, i'm little confused before this. the code above works fine.
well, thx alot.

Similar Messages

  • Error when converting videos for ipod--help needed please! : )

    it keeps saying "unknown error occured -3000"
    *** is that supposed to mean? : )
    i think i have the 5th generation ipod. its the larger gig video one that came out last octoberish.
    i just did the latest updates so i don't really know what else to do & i hate going to the genius bar at my mac store--its in a mall--blech!
    any help would be much appreciated--thanks!
    ibook   Mac OS X (10.3.9)  

    Where are the videos from? are they from a creditable source or from an illegal downloading site such as limewire. most of those videos are not in the correct video format to begin with so apple itunes will not recognize them and convert them. The best way to convert video is to rip your own dvds or home movies and put them on your computer then ipod. There is at least one way on each operating system (windows and mac) to rip your own dvds and then transfer them to itunes and finally put them on your ipod. A mac is the easiest of the two ways. If you have a mac, then you download a program off of the web called handbrake. Simply "google" >handbrake rip dvds< and its homepage should pop up or try <a class="jive-link-external-small" href="http://">http://handbrake.m0k.org). Handbrake allows you to copy and convert your dvds to ipod format. On a windows operating system the most effective way I have found to rip my dvds is quicktime pro($25-$35). You can buy it at quicktime's website. It basically does the same thing as handbrake. I, myself, have simply converted some videos, like sports shows and commercials, to ipod format using itunes and both the video and audio worked fine.
    If you have any ?'s just reply back
    I hope this helps!

  • How to Convert Integer to byte[n]!Help

    I have a Integer 314,Convert to hex is 0x13a,I want to convert to byte[2],and byte[0] equals 0x13 and byte[1] equals [0x30];I use this method convert byte[4],
    int iVal = 314;
    byte [] bVals = new byte[4];for( int i=0; i<4; i++ ) { 
    bVals<i> = (byte)(iVal & 255);
    iVal >>= 8;
    Not I want to result.Please help!

    Try:
    int iVal = 0x01FF03F0;
    byte [] bVals = new byte[4];
    for(int i=3; i>=0; i--) {
        bVals[i] = (byte)(iVal & 255);
        iVal >>= 8
    //print results
    for (int i = 0; i < 4; i++) {
       int temp = bVals[i] & 0xFF;  // avoid displaying negative numbers
       System.out.println("byte " + i + " = " +  Integer.toHexString(temp));
    }

  • Unable to allocate 27160 bytes.........Help needed urgently

    hi
    in my production database in getting this error..
    ORA-04031: unable to allocate 27160 bytes of shared memory ("shared
    pool","unknown object","sga heap(1,0)","session param values")
    help needed urgently

    If you have a program that does not use bind variables you can get this error.
    In such cases you do not want to increase the size of the shared pool, but reduce it, and flush regularly. This is a bug in the application and should be fixed to use bind variables.
    Another possible workaround is setting cursor_sharing = force, but this can cause other problems, so should only be used as a last resort. If the apps connections can be distinguished by user account or machine, then a log on trigger could be set cursor_sharing just for that application, to limit the damage until the vendor can fix it.

  • Converting bytes to pixels???

    Hi Everyone,
    My Jdev version is 11.1.2.3.0.
    I have deloped one ADF applicaton which is working fine.
    Now i have added a table to the page which has 3 columns. The width of the column in ADF page should be equal to width of the column in the database.
    How can i convert bytes to pixels in my ADF page.
    The three column's width in database are: 200Bytes, 250Bytes, 150Bytes. Now i need to specify the width in pixels in ADF.
    how can i do that?
    Any ways to do that?
    Thanks.

    Yeah I meant e[i] - sorry about that.
    When you say "diagram the to / from arrays" do you mean you want to see their definition & initialisation? If so, please see below:
    numBands, length & width are the three fields read in from the image header.
    byte[] imageDataByte = new byte[numBands * length * width];
              ra.read(imageDataByte,0,numBands * length * width);
              int[] iD = new int[numBands * length * width];
              int count = 0;     
              int[] imageData = new int[numBands * length * width];
              for (int x = 0; x < length; x++)
              for (int y = 0; y < numBands; y++)
              for (int z = 0; z < width; z++)
                   imageData[(length*z+x) + (length* width*y)] += imageDataByte[(length*z+x) + (length* width*y)] << ((length*z+x) + (length* width*y)*512);     
                   count = count + 1;
                   System.out.println(count + ": " + imageData[(length*z+x) + (length* width*y)]);
    Any help would be greatly appreciated.
    Many thanks,
    CG.

  • How to convert bytes[] into File object

    hi
    how to convert byte array into File object
    pls.. help me
    Regards
    srinu

    rrrr007 wrote:
    Hi,
    How to convert bytes[] into multipage File object?? ]There's no such thing as a "multipage File object." You ought to re-read this thread closely, and read the [API docs for File|http://java.sun.com/javase/6/docs/api/java/io/File.html] to clear up your confusion about what a File object is.
    I used the java.io.SequenceInputStream to concatenate two input streams (basically .pdf files) into a single input stream. I need to create a single multipage pdf file using this input stream. Then you need a pdf API, like iText or fop. You can't just concatenate pdf files, word docs, excel sheets, etc., like you can text files. Google for java pdf api.

  • 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 bytes[] into multipage File object

    Hi,
    How to convert bytes[] into multipage File object??
    I used the java.io.SequenceInputStream to concatenate two input streams (basically .pdf files) into a single input stream. I need to create a single multipage pdf file using this input stream.
    Thanks for you help in advance..

    Only text format allows you to concatenate two files together to get a longer files.
    Most formats have a header and a footer and so you cannot simply add one to the other.
    You need to use a PDF API which will allow you to build the new document (if one exists)

  • Help needed : Extension manager cs6 not listing products

    Help needed to Adobe extension manager cs6 to show all my cs6 products
    I downloaded Extension manager from here Adobe - Exchange : Download the Adobe Extension Manager
    My Computer windows xp 32bit
    My Photosop version cs6
    My Dreamweaver version cs6
    I installed photoshop here : C:\Program Files\Adobe\Adobe Dreamweaver CS6
    and my XManConfigfile
    <?xml version="1.0" encoding="UTF-8"?>
    <Configuration>
        <VariableForExMan>
            <Data key="$sharedextensionfolder">$shareddatafolder/Adobe/Dreamweaver CS6/$LOCALE/Configuration/Extensions</Data>
            <Data key="$dreamweaver">$installfolder</Data>
            <Data key="$dreamweaver/Configuration">$userdatafolder/Adobe/Dreamweaver CS6/$LOCALE/Configuration</Data>
            <Data key="$UserBinfolder">$userdatafolder/Adobe/Dreamweaver CS6/$LOCALE</Data>
            <Data key="NeedOperationNotification">true</Data>
            <Data key="QuitScript">dw.quitApplication()</Data>
            <Data key="SupportedInSuite">CS6</Data>
            <Data key="HostNameForCSXS">DRWV</Data>
            <Data key="ProductVersion">12.0</Data>
            <Data key="Bit">32</Data>
    <Data key="DefaultLocale">en_US</Data>
    </VariableForExMan> 
    </Configuration>
    Extension manager installed here : C:\Program Files\Adobe\Adobe Extension Manager CS6
    Photoshop Installed here: C:\Program Files\Adobe\Adobe Photoshop CS6
    and my XManConfigfile
    <?xml version="1.0" encoding="UTF-8"?>
    <Configuration>
        <VariableForExMan>
            <Data key="EmStorePath">$SharedRibsDataFolder/Adobe/Extension Manager</Data>
            <Data key="$photoshopappfolder">$installfolder</Data>
            <Data key="$pluginsfolder">$photoshopappfolder/Plug-Ins</Data>
            <Data key="$presetsfolder">$photoshopappfolder/Presets</Data>
            <Data key="$platform">Win</Data>
            <Data key="$actions">$presetsfolder/Actions</Data>
            <Data key="$blackandwhite">$presetsfolder/Black and White</Data>
            <Data key="$brushes">$presetsfolder/Brushes</Data>
            <Data key="$channelmixer">$presetsfolder/Channel Mixer</Data>
            <Data key="$colorbooks">$presetsfolder/Color Books</Data>
            <Data key="$colorrange">$presetsfolder/Color Range</Data>
            <Data key="$colorswatches">$presetsfolder/Color Swatches</Data>
            <Data key="$contours">$presetsfolder/Contours</Data>
            <Data key="$curves">$presetsfolder/Curves</Data>
            <Data key="$customshapes">$presetsfolder/Custom Shapes</Data>
            <Data key="$duotones">$presetsfolder/Duotones</Data>
            <Data key="$exposure">$presetsfolder/Exposure</Data>
            <Data key="$gradients">$presetsfolder/Gradients</Data>
            <Data key="$huesat">$presetsfolder/Hue Sat</Data>
            <Data key="$imagestatistics">$presetsfolder/Image Statistics</Data>
            <Data key="$keyboardshortcuts">$presetsfolder/Keyboard Shortcuts</Data>
            <Data key="$layouts">$presetsfolder/Layouts</Data>
            <Data key="$lenscorrection">$presetsfolder/Lens Correction</Data>
            <Data key="$levels">$presetsfolder/Levels</Data>
            <Data key="$liquifymeshes">$presetsfolder/Liquify Meshes</Data>
            <Data key="$menucustomization">$presetsfolder/Menu Customization</Data>
            <Data key="$optimizedcolors">$presetsfolder/Optimized Colors</Data>
            <Data key="$optimizedoutputSettings">$presetsfolder/Optimized Output Settings</Data>
            <Data key="$optimizedsettings">$presetsfolder/Optimized Settings</Data>
            <Data key="$patterns">$presetsfolder/Patterns</Data>
            <Data key="$reducenoise">$presetsfolder/Reduce Noise</Data>
            <Data key="$replacecolor">$presetsfolder/Replace Color</Data>
            <Data key="$scripts">$presetsfolder/Scripts</Data>
            <Data key="$selectivecolor">$presetsfolder/Selective Color</Data>
            <Data key="$shadowhighlight">$presetsfolder/Shadow Highlight</Data>
            <Data key="$smartsharpen">$presetsfolder/Smart Sharpen</Data>
            <Data key="$styles">$presetsfolder/Styles</Data>
            <Data key="$textures">$presetsfolder/Textures</Data>
            <Data key="$tools">$presetsfolder/Tools</Data>
            <Data key="$variations">$presetsfolder/Variations</Data>
            <Data key="$webphotogallery">$presetsfolder/Web Photo Gallery</Data>
            <Data key="$workspaces">$presetsfolder/Workspaces</Data>
            <Data key="$zoomify">$presetsfolder/Zoomify</Data>
         <Data key="$hueandsaturation">$presetsfolder/Hue and Saturation</Data>
         <Data key="$lights">$presetsfolder/Lights</Data>
         <Data key="$materials">$presetsfolder/Materials</Data>
         <Data key="$meshes">$presetsfolder/Meshes</Data>
         <Data key="$rendersettings">$presetsfolder/Render Settings</Data>
         <Data key="$volumes">$presetsfolder/Volumes</Data>
         <Data key="$widgets">$presetsfolder/Widgets</Data>
            <Data key="$localesfolder">$photoshopappfolder/Locales</Data>
            <Data key="$additionalplugins">$localesfolder/$LOCALE/Additional Plug-ins</Data>
            <Data key="$additionalpresets">$localesfolder/$LOCALE/Additional Presets</Data>
            <Data key="$localeskeyboardshortcuts">$localesfolder/$LOCALE/Additional Presets/$platform/Keyboard Shortcuts</Data>
            <Data key="$localesmenucustomization">$localesfolder/$LOCALE/Additional Presets/$platform/Menu Customization</Data>
            <Data key="$localesworkspaces">$localesfolder/$LOCALE/Additional Presets/$platform/Workspaces</Data>
            <Data key="$automate">$pluginsfolder/Automate</Data>
            <Data key="$digimarc">$pluginsfolder/Digimarc</Data>
            <Data key="$displacementmaps">$pluginsfolder/Displacement Maps</Data>
            <Data key="$effects">$pluginsfolder/Effects</Data>
            <Data key="$extensions">$pluginsfolder/Extensions</Data>
            <Data key="$fileformats">$pluginsfolder/File Formats</Data>
            <Data key="$filters">$pluginsfolder/Filters</Data>
            <Data key="$imagestacks">$pluginsfolder/Image Stacks</Data>
            <Data key="$importexport">$pluginsfolder/Import-Export</Data>
            <Data key="$measurements">$pluginsfolder/Measurements</Data>
            <Data key="$panels">$pluginsfolder/Panels</Data>
            <Data key="$parser">$pluginsfolder/Parser</Data>
         <Data key="$3dengines">$pluginsfolder/3D Engines</Data>
            <Data key="$lightingstyles">$pluginsfolder/Filters/Lighting Styles</Data>
            <Data key="$matlab">$photoshopappfolder/MATLAB</Data>
            <Data key="UserExtensionFolder">$photoshopappfolder</Data>
            <Data key="$photoshop">$UserDataFolder/Adobe/Adobe Photoshop CS6/Configuration</Data>
            <Data key="DisplayName">Photoshop CS6 32</Data>
            <Data key="ProductName">Photoshop32</Data>
            <Data key="FamilyName">Photoshop</Data>
            <Data key="ProductVersion">13.0</Data>
            <Data key="IconPath">Configuration/PS_exman_24px.png</Data>
            <Data key="SupportedInSuite">CS6</Data>
            <Data key="HostNameForCSXS">PHSP</Data>
            <Data key="Bit">32</Data>
        </VariableForExMan> 
    </Configuration>
                                                                        Please someone help me i cant install any photoshop extension because of this issue,,,

    Waiting for your reply ...thanks
    Here is the results
    I installed photoshopcs6 illustrator cs6 dreamweaver cs6 illustrator cs6 in the system , But nothing seems
    Result: BridgeTalk Diagnostics
      Info:
      Name = estoolkit-3.8
      Status = PUMPING
      Path
      Version = 2.0
      Build = ES 4.2.12
      Next serial number = 40
      Logging: = OFF
      Now = 15:55:49
      Messages:
      Message Version = 2.05
      Authentication = ON
      Digest = ON
      Thread: estoolkit-3.8#thread
      Avg. pump interval = 55ms
      Last pump = 62ms ago
      Ping: 7
      ECHO_REQUEST: ECHO_RESPONSE
      Timeout = undefined
      Handler = undefined
      STATUS: PUMPING
      Timeout = undefined
      Handler = undefined
      MAIN: MAIN
      Timeout = undefined
      Handler = installed
      LAUNCHED: LAUNCHED
      Timeout = undefined
      Handler = installed
      DIAGNOSTICS: DIAGNOSTICS
      Timeout = undefined
      Handler = installed
      INFO: INFO
      Timeout = undefined
      Handler = installed
      SETUPTIME: thread=0ms, left=16ms
      Timeout = undefined
      Handler = undefined
      Instances: 3
      estoolkit-3.8#dbg:
      msg[15:55:49]: 00000035
      @BT>Version = 2.05
      Target = estoolkit-3.8#dbg
      Sender = estoolkit-3.8#dbg
      Sender-ID = localhost:win3788
      Timeout = 15:55:50
      Type = Ignore
      Response-Request = Timeout
      Headers = (no headers)
      Timestamp = 15:55:49
      Serial-Number = 35
      Received = undefined
      Result = undefined
      Error = undefined
      Body = (empty)
      Incoming: 1
      Outgoing: 0
      Handler: 9
      ExtendScript = for all messages
      Error = for only msg #25
      Error = for only msg #27
      Error = for only msg #31
      Result = for only msg #35
      Error = for only msg #35
      Timeout = for only msg #35
      Result = for only msg #37
      Error = for only msg #37
      estoolkit-3.8#estk:
      msg[15:55:49]: 00000037
      @BT>Version = 2.05
      Target = estoolkit-3.8#estk
      Sender = estoolkit-3.8#dbg
      Sender-ID = localhost:win3788
      Timeout = 16:05:49
      Type = Debug
      Response-Request = Result Error
      Headers = (no headers)
      Timestamp = 15:55:49
      Serial-Number = 37
      Received = undefined
      Result = undefined
      Error = undefined
      Body: 107 bytes
      Text = <get-properties engine="main" object="$.global" exclude="undefined,builtin,prototype" all="true" max="20"/>
      Incoming: 1
      Outgoing: 0
      Handler: 1
      ExtendScript = for all messages
      estoolkit-3.8: (main)
      Incoming: 0
      Outgoing: 0
      Handler: 1
      ExtendScript = for all messages
      Targets: 1
      Connector = PCD
      Installed: 0
      Running: 0
      exman-6.0:
      Path = C:\Program Files\Adobe\Adobe Extension Manager CS6\Adobe Extension Manager CS6.exe
      Display Name = Adobe Extension Manager CS6
      MsgAuthentication = ON
      MsgDigest = ON
      ESTK = OFF
      BundleID = com.adobe.exman
      Status = (not running)
      ExeName = Adobe Extension Manager CS6.exe
      Installed: 1
      Running: 0
      Groups = (no groups defined)

  • Urgent help needed, can I restore N900 Backup file...

    i owned a N900 (now sold out)
    before selling i took backup of contacts from backup restore option in application section
    now i bought a N8 but i m not able to restore my contacts
    1. is there any way to restore them in N8?
    2. if not, can i convert them in TEXT or any readable format
    urgent help needed
    thanks in advance

    The backup procedures built into the phone are only designed for restoring to the same phone (ie: in case or data corruption, software update or repair etc.), they can't usually be used to restore to a phone with a different operating system.
    You should have backed up with Ovi Suite before selling the N900, that would have been able to restore to the N8.

  • HELP NEEDED PLEASE

    Hi everyone
    Programming help needed here. Any advice would be greatly appreciated!!!
    I have been assigned some work for a program called Processing 1.0 availale at http://processing.org/download
    I was give the 9 individual programs I needed to make however they were converted to Java files from .pde files. The program is based on Java but only runs .pde files and NOTHING else!
    I decompiled the files and got the source code, but it is a slight variation of the original someone made in processing, and needs some tidying to get it to run.
    I think the programs are very simple for a programmer, although I AM NOT.
    CODE is BELOW
    // Decompiled by DJ v3.10.10.93 Copyright 2007 Atanas Neshkov Date: 02/05/2009 13:15:00
    // Home Page: http://members.fortunecity.com/neshkov/dj.html http://www.neshkov.com/dj.html - Check often for new version!
    // Decompiler options: packimports(3)
    // Source File Name: Assign2_1.java
    import processing.core.PApplet;
    public class Assign2_1 extends PApplet
    public Assign2_1()
    SquareSide = 20;
    Rank = Nums.length;
    Side = SquareSide * Rank;
    Green = color(0, 255, 0);
    Yellow = color(255, 255, 0);
    BG = Yellow;
    public void setup()
    size(Side, Side);
    background(BG);
    fill(Green);
    for(int i = 0; i < Rank; i++)
    rect(i * SquareSide, 0.0F, SquareSide, SquareSide * Nums);
    public static void main(String args[])
    PApplet.main(new String[] {
    "--bgcolor=#ece9d8", "Assign2_1"
    int Nums[] = {
    6, 14, 8, 9, 2, 3, 4, 2, 8, 3,
    9, 2, 0, 5
    int SquareSide;
    int Rank;
    int Side;
    int Green;
    int Yellow;
    int BG;
    Edited by: chevy1 on May 2, 2009 7:32 AM

    HELP NEEDED PLEASEShouting is a good way ensure you don't get help. Also you should give a meaningful subject.
    Any advice would be greatly appreciated!!!I suggest you ask a question after providing enough information to be able to answer it.
    Also use CODE tags when posting code as it make the code more readable.
    We are more likely to help people who are trying to learn Java rather than someone who might be looking for an easy way out of doing an assignment.

  • Convert byte array to table of int

    [http://www.codeproject.com/KB/database/PassingArraysIntoSPs.aspx?display=Print|http://www.codeproject.com/KB/database/PassingArraysIntoSPs.aspx?display=Print] Hello friends.
    I'm pretty new with PL/SQL.
    I have code that run well on MSSQL and I want to convert it to PL/SQL with no luck.
    The code converts byte array to table of int.
    The byte array is actually array of int that was converted to bytes in C# for sending it as parameter.
    The TSQL code is:
    CREATE FUNCTION dbo.GetTableVarchar(@Data image)
    RETURNS @DataTable TABLE (RowID int primary key IDENTITY ,
    Value Varchar(8000))
    AS
    BEGIN
    --First Test the data is of type Varchar.
    IF(dbo.ValidateExpectedType(103, @Data)<>1) RETURN
    --Loop thru the list inserting each
    -- item into the variable table.
    DECLARE @Ptr int, @Length int,
    @VarcharLength smallint, @Value Varchar(8000)
    SELECT @Length = DataLength(@Data), @Ptr = 2
    WHILE(@Ptr<@Length)
    BEGIN
    --The first 2 bytes of each item is the length of the
    --varchar, a negative number designates a null value.
    SET @VarcharLength = SUBSTRING(@Data, @ptr, 2)
    SET @Ptr = @Ptr + 2
    IF(@VarcharLength<0)
    SET @Value = NULL
    ELSE
    BEGIN
    SET @Value = SUBSTRING(@Data, @ptr, @VarcharLength)
    SET @Ptr = @Ptr + @VarcharLength
    END
    INSERT INTO @DataTable (Value) VALUES(@Value)
    END
    RETURN
    END
    It's taken from http://www.codeproject.com/KB/database/PassingArraysIntoSPs.aspx?display=Print.
    The C# code is:
    public byte[] Convert2Bytes(int[] list)
    if (list == null || list.Length == 0)
    return new byte[0];
    byte[] data = new byte[list.Length * 4];
    int k = 0;
    for (int i = 0; i < list.Length; i++)
    byte[] intBytes = BitConverter.GetBytes(list);
    for (int j = intBytes.Length - 1; j >= 0; j--)
    data[k++] = intBytes[j];
    return data;
    I tryied to convert the TSQL code to PL/SQL and thats what I've got:
    FUNCTION GetTableInt(p_Data blob)
    RETURN t_array --t_array is table of int
    AS
    l_Ptr number;
    l_Length number;
    l_ID number;
    l_data t_array;
    BEGIN
         l_Length := dbms_lob.getlength(p_Data);
    l_Ptr := 1;
         WHILE(l_Ptr<=l_Length)
         loop
              l_ID := to_number( DBMS_LOB.SUBSTR (p_Data, 4, l_ptr));
              IF(l_ID<-2147483646)THEN
                   IF(l_ID=-2147483648)THEN
                        l_ID := NULL;
                   ELSE
                        l_Ptr := l_Ptr + 4;
                        l_ID := to_number( DBMS_LOB.SUBSTR(p_Data, 4,l_ptr));
                   END IF;
                   END IF;
    l_data(l_data.count) := l_ID;
              l_Ptr := l_Ptr + 4;
         END loop;
         RETURN l_data;
    END GetTableInt;
    This isn't work.
    This is the error:
    Error report:
    ORA-06502: PL/SQL: numeric or value error: character to number conversion error
    06502. 00000 - "PL/SQL: numeric or value error%s"
    I think the problem is in this line:
    l_ID := to_number( DBMS_LOB.SUBSTR (p_Data, 4, l_ptr));
    but I don't know how to fix that.
    Thanks,
    MTs.

    I'd found the solution.
    I need to write:
    l_ID := utl_raw.cast_to_binary_integer( DBMS_LOB.SUBSTR(p_Data, 4,l_ptr));
    instead of:
    l_ID := to_number( DBMS_LOB.SUBSTR (p_Data, 4, l_ptr));
    The performance isn't good, it's take 2.8 sec to convert 5000 int, but it's works.

  • EDI IDOC generation for interface with Vendor software help needed.

    EDI IDOC help needed.
    We are NOT an EDI shop, but have a project to output data to Sales Force.com
    Sales Force requests IDOC output - eg. 810 Outbound Invoice.
    We will need to do a historical load of Orders/Quotes/Invoices from the past 2 years.
    Is there a function module or series of FM's that are used to generate the E2EDKxxxxx type segments?
    I have been testing using the IDOC_OUTPUT_INVOIC and IDOC_OUTPUT_ORDRSP FM's, but they generate segments begining with E1EDKxxxxx.
    Basicall we have a report program that the user enteres in the date range of Order/Quotes/Invoices they wish to extract, the the program needs to output a flat file (.txt) on the server which is then picked up by Sales Force.com.
    Also, is there a way to have in the Partner Profile a generic Partner under the "Type KU" that can be used for all orders/invoices so I don't have to create a KU Partner Type for each and every Sold-To customer we have?
    I am very new to EDI so any help would be greatly appreciated.
    Thanks.
    Scott.

    Hi Scott,
    We will need to do a historical load of Orders/Quotes/Invoices from the past 2 years.
    I know it's very tempting to use an interface for such loads if you anyhow have to create one. However, often the volume alone speaks against interface usage for such scenarios.
    Is there a function module or series of FM's that are used to generate the E2EDKxxxxx type segments? I have been testing using the IDOC_OUTPUT_INVOIC and IDOC_OUTPUT_ORDRSP FM's, but they generate segments begining with E1EDKxxxxx.
    Well, the E2* segments basically reflect the external name of the IDoc segment, whereas the function modules you're referring to basically just create an internal version of the IDoc. Once the IDoc framework then passes the IDocs to the partner, the segment names usually (depends on how the IDocs are passed on) get converted to their external name. If there are multiple versions of a segment, then the version number will be appended to the segment name.
    Note that IDoc segment definitions are only partially stored in the data dictionary. If you want to see all versions you should always use transaction WE31 to look at segments. There you can also see for example for E1EDK01 the several versions and when you then use in SE37 function module SEGMENT_EXTERNAL_NAME_GET you will see what SAP produces as the external name for segment E1EDK01. This function module is basically the one that handles the segment name translations.
    Ignore the comments for subsystem, this is basically an option in SAP to possibly trigger further external tools (e.g. mapping etc.) for handling the outbound IDocs.
    Again, the funny thing is that via the WE30 transaction, if i put in INVOIC02 as the Obj. name and see the segments, i can see that E2EDK01 there is a version 005, but if i go to SE11 and put in E2EDK01005 structure line and i get a "not found". We just have up to E2EDK01002.
    In the old days SAP used to generate E1, E2 and E3* structures in the data dictionary (SE11). The E1* structure reflected the character type representation of an IDoc segment, whereas the other two (definition and documentation) contained actual references to data elements (e.g. if you used a quantity field). However, in newer releases those dictionary structures (E2* & E3*) are no longer generated, because they're superfluous (meta data defined via WE31 is sufficient).
    Cheers, harald

  • Color management help needed for adobe CS5 and Epson printer 1400-Prints coming out too dark with re

    Color management help needed for adobe CS5 and Epson printer 1400-Prints coming out too dark with reddish cast and loss of detail
    System: Windows 7
    Adobe CS5
    Printer: Epson Stylus Photo 1400
    Paper: Inkjet matte presentation paper with slight luster
    Installed latest patch for Adobe CS5
    Epson driver up to date
    After reading solutions online and trying them for my settings for 2 days I am still unable to print what I am seeing on my screen in Adobe CS5. I calibrated my monitor, but am not sure once calibration is saved if I somehow use this setting in Photoshop’s color management.
    The files I am printing are photographs of dogs with lots of detail  I digitally painted with my Wacom tablet in Photoshop CS5 and then printed with Epson Stylus 1400 on inkjet paper 20lb with slight luster.
    My Printed images lose a lot of the detail & come out way to dark with a reddish cast and loss of detail when I used these settings in the printing window:
    Color Handling: Photoshop manages color, Color management -ICM, OFF no color adjustment.
    When I change to these settings in printer window: Color Handling:  Printer manages color.  Color management- Color Controls, 1.8 Gamma and choose Epson Standard it prints lighter, but with reddish cast and very little detail and this is the best setting I have used so far.
    Based on what I have read on line, I think the issue is mainly to do with what controls are set in the Photoshop Color Settings window and the Epson Printer preferences. I have screen images attached of these windows and would appreciate knowing what you recommend I enter for each choice.
    Also I am confused as to what ICM color management system to use with this printer and CS5:
    What is the best ICM to use with PS CS5 & the Epson 1400 printer? Should I use the same ICM for both?
    Do I embed the ICM I choose into the new files I create? 
    Do I view all files in the CS5 workspace in this default ICM?
    Do I set my monitor setting to the same ICM?
    If new file opens in CS5 workspace and it has a different embedded profile than my workspace, do I convert it?
    Do I set my printer, Monitor and PS CS5 color settings to the same ICM?
    Is using the same ICM for all devices what is called a consistent workflow?
    I appreciate any and all advice that can be sent my way on this complicated issue. Thank you in advance for your time and kind help.

    It may be possible to figure out by watching a Dr.Brown video on the subject of color printing. Adobe tv
    I hope this may help...............

  • Help needed to resolve there is no attribute X errors..

    On my website http://www.dorffdesign.nl/ there is a problem. Ive put the FB Like button there and it worked fine for a while. But now its gone. So ive run
    http://validator.w3.org/ on it and came up with the next errors:
    ========================================================================================== ==============================================
      Line 232, Column 32: there is no attribute "data-href" <div class="fb-like" data-href="http://www.dorffdesign.nl/" data-send="true" da… ✉  
      Line 232, Column 71: there is no attribute "data-send" …http://www.dorffdesign.nl/" data-send="true" data-width="450" data-show-faces=… ✉  
      Line 232, Column 89: there is no attribute "data-width" …orffdesign.nl/" data-send="true" data-width="450" data-show-faces="true"></div> ✉  
      Line 232, Column 111: there is no attribute "data-show-faces" …orffdesign.nl/" data-send="true" data-width="450" data-show-faces="true"></div>
    ========================================================================================== ===============================================
    In dreamweaver ive use this code for the FB likke button:
    <div id="fb-root"></div>
    <script>(function(d, s, id) {
      var js, fjs = d.getElementsByTagName(s)[0];
      if (d.getElementById(id)) return;
      js = d.createElement(s); js.id = id;
      js.src = "//connect.facebook.net/nl_NL/all.js#xfbml=1";
      fjs.parentNode.insertBefore(js, fjs);
    }(document, 'script', 'facebook-jssdk'));</script>
    ========================================================================================== ===========
    <div class="fb-like" data-href="http://www.dorffdesign.nl/" data-send="true" data-width="450" data-show-faces="true"></div>
    I really want to solve this so im hoping if you can point me into the right direction.
    Regards

    Hi ive bin able to put the fb like button on my page. But i totally forgot how i have to place the fb like button under the black box named portfolio.
    I hope you can tell me.
    Regards
    Date: Wed, 7 Nov 2012 07:41:54 -0700
    From: [email protected]
    To: [email protected]
    Subject: Help needed to resolve there is no attribute X errors..
        Re: Help needed to resolve there is no attribute X errors..
        created by MurraySummers in Dreamweaver General - View the full discussion
    You can either ignore those errors (since they have no impact on your page's functionality) or you can use DW to convert your page to an HTML5 doctype (File > Convert > HTML 5, and then the errors will go away.
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/4829606#4829606
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4829606#4829606
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4829606#4829606. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Dreamweaver General by email or at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

Maybe you are looking for

  • Is there a way to save over previous files without renaming when packaging InDesign files?

    I am finding the file management a nightmare with having to package my work from Creative Cloud at home in order to work in Creative Suite at school. I usually have to do this back and forth multiple times for the same project creating multiple files

  • Back To My Mac no longer working

    For a couple years, I've never had a problem with Back To My Mac. I could control my Mac Mini at home using my Macbook Pro wherever I am. But since Yosemite, I've been unable to use BTMM. Screen Sharing still works fine when I'm at home, but not BTMM

  • Accessing sap tables data and display in webi

    Hi all, i installed business objects edge series. i want to access SAP tables data and display in webi for adhoc reporting. Is there any process to achieve this.

  • N73 Shuts down during firmware update

    The new firmware downloads, the installation screen appears, and then my phone shuts down. So the installation never gets started. After a while, I get a message to unplug the charger, remove and replace the battery and try again. Which I do...and th

  • Oracle Reports Books

    I am in search of finding some Oracle Reports Books that are newer that 6i. I need to find one that supports Reports 9i or 10g. Is it possible to get any book like that and where do I find one like that? I have looked at the usual places like Amazon