Coversion from byte stream to character & character to byte stream.

This is a test program.
import java.io.*;
class Test
     public static void main(String[] args)
          System.out.println("Hello World!");
          try
               BufferedReader br = new BufferedReader(new InputStreamReader(new FileInputStream(new File("C:/javafiles/testing/Picture.jpg"))));
               PrintWriter bw = new PrintWriter(new OutputStreamWriter(new FileOutputStream(new File("C:/javafiles/testing/Copy.jpg"))));
               String in = br.readLine();
               while (in != null)
                    bw.println(in);
                    in = br.readLine();
               br.close();
               bw.close();
          catch (Exception e)
               System.out.println("\n\n**********Exception Occured**************\n" + e);
**First of all I read jpg file convert it into character stream from byte stream.
**and copy it back and convert it back into byte steam from character stream.
**The file copied back is corrupted.(getting open but display has fully scattered.)
**That means data has been lost in conversion.
**is it due to the encoding, I havn't specified while writing, or it always happens when we convert from byte stream to character and vice versa.
**What encoding should I use while writing jpg files.
please comment.

**First of all I read jpg file convert it into
character stream from byte stream.
**and copy it back and convert it back into byte
steam from character stream.First of all this operation is meaningless. A JPEG file doesn't contain anything that can be converted to characters. Delete the 'conversions' and all will be well.
**What encoding should I use while writing jpg files.None. Don't use an encoding. Don't use Readers and Writers. Use InputStreams and OutputStreams only.

Similar Messages

  • GUI_DOWNLOAD give 2 bytes for each chinese character - I need fixed length

    Due to the Unicode system takes each Chinese character as a byte, the field(10) can take 10 Chinese Characters, not like before only 5 characters allowed.
    The problem is when the data is downloaded to a txt file. Some records contains only Western Europe charactes and will fill 10 bytes in the output file and other records contains only Chinese characters and will fill up 20 bytes in the output file.
    The data is exported for a system that can upload chinese characters, but only allow fixed record length file (always 10 bytes).
    In other words: the records with Western Europe characters should contain 10 characters = 10 bytes but the records with Chinese characters should only contain 5 characters = 10 bytes.
    Anyone who can solve this, thanks in advance.
    My code:
      CALL METHOD CL_GUI_FRONTEND_SERVICES=>GUI_DOWNLOAD
        EXPORTING
          FILENAME                = p_file
          CONFIRM_OVERWRITE       = 'X'
          codepage                = '8400' "Chinese
        CHANGING
          DATA_TAB                = it_output
        EXCEPTIONS

    Hi Thomas,
    Now I understand.
    Pl. check the class CL_ABAP_CONV_X2X_CE.
    May it can help u.
    Here is it's documentation.
    CL CL_ABAP_CONV_X2X_CE
    Short Text
    Code Page and Endian Conversion Between External Formats
    Functionality
    Instances of the class CL_ABAP_CONV_X2X_CE allow you to convert text data between different character sets and numeric data between different number formats (byte order).
    Using the class corresponds to transforming data from a binary input stream to a binary output stream: The data objects are read from the input buffer sequentially and written to an output buffer.
    The class methods are normally used as follows:
    CL_ABAP_CONV_X2X_CE=>CREATE
    This creates a conversion instance. Among other options, you can specify the following as parameters: The input buffer (that is the binary string that contains the data to be read), the character format at used in the input buffer, the byte order used in the input buffer, the character format to be used in the output buffer, or the byte order to be used in the output buffer.
    CONVERT_C, CONVERT_...
    This converts the data. Calling this method several times consecutively allows you to read data from the input buffer sequentially and add it to the end of the output buffer.
    GET_OUT_BUFFER
    This gets the output buffer, making it available for further processing (such as writing to a file, sending using RFC).
    RESET
    This allows you to reset individual attributes of the conversion instance. (This method is especially designed for restarting on a new input buffer and deleting the output buffer while retaining the remaining attributes.)
    Relationships
    CL_ABAP_CONV_IN_CE
    Converting Binary Data into ABAP Data Objects
    CL_ABAP_CONV_OUT_CE
    Converting ABAP Data Objects to a  Binary Format.
    CL_ABAP_CHAR_UTILITIES
    Various Attributes and Methods for Character Sets and Byte Order
    Example
    In the following example, UTF-8 texts are converted to the codepage 1100 (Latin-1) and numbers are converted from little-endian to big-endian format:
    DATA:
      in_buffer TYPE XSTRING,
      out_buffer TYPE XSTRING,
      conv TYPE REF TO cl_abap_conv_x2x_ce.
    in_buffer = '414220C3B602010000'.
    conv = cl_abap_conv_x2x_ce=>create(
             in_encoding = 'UTF-8'
             in_endian = 'L'
             out_encoding = '1100'
             out_endian = 'B'
             input = in_buffer
    CALL METHOD conv->convert_c( n = 5 ).
    CALL METHOD conv->convert_i( ).
    out_buffer = conv->get_out_buffer( ).
    The content of the in_buffer variable is made up of  5 bytes (hexadecimal "414220C3B6"), which represent 4 UTF-8 characters (A, B, SPACE, o-Umlaut), and 4 bytes (hexadecimal "02010000"),  which represent the value 258 in little-endian format. This data is converted and the out_buffer variable now contains the hexadecimal string "414220F600000102". It is made up of:
    4 bytes (hexadecimal "414220F6"), which represent the above  4 characters in codepage 1100 (ISO-8859-1). Note that the length specification n = 5 refers to the number of elementary characters to be converted. For multi-byte codepages like UTF-8 this means that the multi-byte character "C3B6" is counted in length 2.
    4 Bytes (hexadecimal "00000102"), which represent the value 258 in big-endian format.
    If you have the desired byte order in the old format as expected by TRANSLATE ... NUMBER FORMAT (as an N(4) value), you can proceed as follows:
    TYPE-POOLS: ABAP.
    CLASS cl_abap_char_utilities DEFINITION LOAD.
    DATA:
      in_number_format(4) TYPE N VALUE '0101',
      out_number_format(4) TYPE N VALUE '0000'.
    DATA:
      in_endian TYPE ABAP_ENDIAN,
      out_endian TYPE ABAP_ENDIAN,
      conv TYPE REF TO cl_abap_conv_x2x_ce..
    in_endian  = cl_abap_char_utilities=>number_format_to_endian(
                   in_number_format
    out_endian = cl_abap_char_utilities=>number_format_to_endian(
                   out_number_format
    conv = cl_abap_conv_x2x_ce=>create(
             in_encoding = 'UTF-8'
             in_endian = in_endian
             out_encoding = '1100'
             out_endian = out_endian
             input = in_buffer
    Notes
    For details refer to the documentation for the individual methods.
    Regards,
    Joy.

  • Byte position of single character

    Hi,
    I am dealing with very big XML files and since I don't need all the information in them, I would like to have random access to the XML elements, to pick the ones I am interested in (without loading/searching the whole document every time).
    So, I wanted to create a index of the XML file with xpath expressions (from the root to the element of interest) as keys and byte positions as values. I would need to parse the XML only once and record the byte position at the beginning of the start tag and at the end of the end tag. Thus if I read from the start position to the corresponding end position in the file, I would end up with proper xml that is only the part of the file that I am interested in.
    E.g.: Once I have the index I could use RandomAccessFile to retrieve a byte array from start to stop position and convert it to a String using the correct encoding.
    BUT: I haven't found a way to get to the needed byte position.
    I tried using XMLStreamReader, since it has a method getLocation, but I have problems with that too.
    ( see: http://forum.java.sun.com/thread.jspa?threadID=5198055 )
    And if I use a reader like InputStreamReader, I would be able to read character by character and parse the file myself, but I don't get the byte position (even using CountingInputStream, since the reader buffers the input stream).
    Any ideas how to tackle this problem, hints or alternatives are highly appreciated!
    Thanks!

    Do you mean "how many characters before the last newline", or "how many bytes before the last non-\n (possibly also non-\r) byte", or "what is the byte position of the first byte of the last character", or something else? Those can be different things if you have a multibyte encoding.
    For last byte (or ISO-8859 character): get length of file (see File javadoc), seek and read using RandomAccessFile until you find something you don't consider newline (you need to think about carriage return vs linefeed.)

  • Character mode or byte mode error.

    Hi Experts,
    In my smartforms I wanted to read the long text as well as short text from tcode Qs41. So i used Read_text fm to get my job done. In the header section of the long text the text name was concatenated as client, catalog, codegruppe,language. So i merged this all objects using concatenate statement as per my requirement...Problem occured when a particular long text maintained had a text name not merged i mean client,catalog,codegruppe where merged but there was a gap in between codegrp and language.I found that it was because codegruppe has length 8 and the name of the codegruppe was less than that.
    To rectify that i used 'respecting blanks' statement in concatenate but it is showing error character mode or byte mode.
    Any help would be appreciated....
    Regards,
    Pawan

    Hi Suhas,
    TABLES :   v_qpac_kat, mapl.
    Types                            Begin with TY_
    TYPES  : BEGIN OF ty_header,
                 matnr TYPE mara-matnr,
                 mtart TYPE mara-mtart,
                 maktx TYPE makt-maktx,
                 addrnumber TYPE adrc-addrnumber,
                 name1 TYPE adrc-name1,
                 city1 TYPE adrc-city1,
                 post_code1 TYPE adrc-post_code1,
                 street TYPE adrc-street,
                 house_num1 TYPE adrc-house_num1,
                 datuv TYPE plko-datuv,
    aedat  TYPE plko-datuv,
    valid_from TYPE plko-datuv,
    plnal(2) TYPE c,
    prev_ctnr(2) TYPE c,
                str_suppl TYPE adrc-str_suppl1,
                plnnr_alt TYPE plko-plnnr_alt,
                werks     TYPE mapl-werks,
             END OF ty_header.
    TYPES : BEGIN OF ty_plmk,
              merknr  TYPE plmk-merknr, "insp id
              plnkn   TYPE plmk-plnkn,
              verwmerkm TYPE plmk-verwmerkm,
              qpmk_zaehl TYPE plmk-qpmk_zaehl,
              qpmk_ref TYPE plmk-qpmk_ref,
              mkversion TYPE plmk-mkversion,     "version
              kurztext   TYPE plmk-kurztext,     "shorttext
              masseinhsw TYPE plmk-masseinhsw,   "unit of meas
              sollwert TYPE plmk-sollwert,       "Target value
              toleranzun TYPE plmk-toleranzun,   "lower limit
              toleranzob TYPE plmk-toleranzob,   "upper limit
              auswmenge1 TYPE plmk-auswmenge1,   "assigned code
              steuerkz    TYPE plmk-steuerkz , 
              vornr       TYPE plpo-vornr,                      
              END OF ty_plmk.
    TYPES :  BEGIN OF ty_qpac,
              werks TYPE qpac-werks,
              katalogart TYPE qpac-katalogart,
              auswahlmge TYPE qpac-auswahlmge,
              codegruppe TYPE qpac-codegruppe,
              code       TYPE qpac-code,
              versionam TYPE qpac-versionam,
             END OF ty_qpac.
    TYPES :  BEGIN OF ty_name,
              client TYPE mandt,
              cat TYPE qkttab,
              code_grp TYPE qcodegrp,
              code TYPE qcode,
              ver TYPE qversnr,
              lang,
              str1(20) TYPE c,
              client1(3) TYPE c,
              cat1(1) TYPE c,
              codegrp(8) TYPE c,
              lang1(1) TYPE c,
             END OF ty_name.
    TYPES : BEGIN OF ty_head,
              tdname TYPE stxh-tdname,
            END OF ty_head.
    TYPES : BEGIN OF ty_t001,
              bukrs TYPE t001-bukrs,
              adrnr TYPE t001-adrnr,
            END OF ty_t001.
    TYPES : BEGIN OF ty_adrc1,
              addrnumber TYPE adrc-addrnumber,
              str_suppl1 TYPE adrc-str_suppl1,
              str_suppl2 TYPE adrc-str_suppl2,
            END OF ty_adrc1.
    TYPES : BEGIN OF ty_output,
             vornr TYPE plpo-vornr,
             sr_no(5) TYPE c,
             test TYPE  qtxt_cha,
             specification(132) TYPE c,
             text_name TYPE tdobname,
             flag(1) TYPE c,
             text_name1 TYPE tdobname,
             text1 TYPE tline-tdline,
             codegruppe TYPE qpct-codegruppe,
             text TYPE thead-tdname,
            text1 type tline-tdline,
            ltextv TYPE qpgt-ltextv,
            END OF ty_output.
    TYPES : BEGIN OF ty_qpgt,
             katalogart TYPE qpct-katalogart,
             codegruppe TYPE qpct-codegruppe,
             kurztext   TYPE qpgt-kurztext,
               ltextv TYPE qpgt-ltextv,
            END OF ty_qpgt.
      Data                       Begin with it_
    DATA : it_mapl TYPE TABLE OF ty_mapl WITH HEADER LINE,
           it_plpo TYPE TABLE OF ty_plpo,
           it_plko TYPE TABLE OF ty_plko,
           it_qpmk TYPE TABLE OF ty_qpmk,
           it_qpac TYPE TABLE OF ty_qpac,
           it_output1 TYPE TABLE OF ty_output,
           it_output  TYPE TABLE OF ty_output,
           it_plmk TYPE TABLE OF ty_plmk,
           it_auswmenge1 TYPE STANDARD TABLE OF ty_auswmenge1,
           it_name TYPE STANDARD TABLE OF ty_head,
           it_qpgt TYPE STANDARD TABLE OF ty_qpgt.
        work area                         begin with wa_
    DATA : wa_mapl LIKE LINE OF it_mapl,
           wa_mapl1 LIKE LINE OF it_mapl,
           wa_plpo LIKE LINE OF it_plpo,
           wa_plko LIKE LINE OF it_plko,
           wa_qpmk LIKE LINE OF it_qpmk,
           wa_qpac LIKE LINE OF it_qpac,
           wa_output LIKE LINE OF it_output,
           wa_plmk  LIKE LINE OF it_plmk,
           wa_mara TYPE  ty_mara,
           wa_makt TYPE ty_makt,
           wa_header TYPE  ty_header,
           wa_t001 TYPE ty_t001,
           wa_adrc TYPE ty_adrc,
           wa_adrc1 TYPE ty_adrc1,
           wa_auswmenge LIKE LINE OF it_auswmenge1,
           wa_name LIKE LINE OF it_name,
           wa_qpgt LIKE LINE OF it_qpgt.
    data                      begin with w_
    DATA : string1(20) TYPE c,
           string2(20) TYPE c,
           string3(20) TYPE c,
           string4(20) TYPE c,
           string5(20) TYPE c,
           string6(20) TYPE c,
           string7(20) TYPE c,
           string8(20) TYPE c,
           string9(20) TYPE c,
           string10(20) TYPE c,
           string11(20) TYPE c,
           string12(20) TYPE c.
    DATA : w_count TYPE sy-tabix,
           w_name TYPE  ty_name,
           w_thead TYPE thead-tdname,
           w_name1 TYPE  ty_name,
           w_thead1 TYPE thead-tdname,
           w_auswmenge1  TYPE plmk-auswmenge1,
           w_index TYPE i,
           w_lower TYPE p DECIMALS 3,   
           w_upper TYPE p DECIMALS 3, 
           w_target TYPE p DECIMALS 2,
           w_lowerf TYPE f,
           w_upperf TYPE f,
           w_targetf TYPE f,
           w_spec TYPE i,
           w_res  TYPE i,
           w_flag1(1) TYPE c,
           tolgrenze(40) TYPE c,
           w_lowerc TYPE string,
           w_upperc TYPE string,
           w_targetc TYPE string,
           w_less(40) TYPE c,
           w_counter TYPE i VALUE '1',
           w_tarf TYPE p DECIMALS 3,
           w_bukrs TYPE t001k-bukrs,
            w_shrt_txt(10),
            w_flag2(1) TYPE c.
    TYPES : BEGIN OF ty_tq30,
            art     TYPE tq30-art, "Inspection Type
            pplverw TYPE tq30-art, "Tax List Usage
            END OF ty_tq30.
    Parameters
    SELECTION-SCREEN BEGIN OF BLOCK a WITH FRAME.
    PARAMETERS : pr_mt_no TYPE mapl-matnr OBLIGATORY,
                 pr_wer   TYPE mapl-werks OBLIGATORY,
    Add inspection type as selection criteria
                 p_art    TYPE tq30-art DEFAULT '01' OBLIGATORY.
    SELECTION-SCREEN END OF BLOCK a.
    Initialisation
    INITIALIZATION.
    AT SELECTION-SCREEN
    AT SELECTION-SCREEN.
      PERFORM f0001-matrial_check.
    start of selection
    START-OF-SELECTION.
      PERFORM f001-fetchdata.
      PERFORM f002-process.
      PERFORM f003-display.
    END-OF-SELECTION.

  • How to rerieve records from the table starting with character 'D'

    Hi Folks,
    How to get the records from the table starting with character 'D'.
    Select Max (fld1) fron tab1 into tab1-fld1 where fld 2 = l_fld2 and starting character of fld(1) is 'D'.
    last record in the table starting with character 'D'
    How can i do that??
    Pl explain.
    Thanks,
    Matt

    Hi,
    Select Max (fld1) fron tab1 into tab1-fld1 where fld 2 = l_fld2 and starting character of fld(1) is 'D'.
    Select MAX (fld1)
       From  tab1
    into table itab
    where fld 2 = l_fld2
       and fld1 like 'D%'.

  • Cannot see my picture stream on iPad with IOS 8.1.3. Pics from iPad are uploaded and visible on picture stream on iPhone 4, IOS 7. Is this a bug?

    I cannot see my picture stream on iPad with IOS 8.1.3. The pictures  from iPad are uploaded and visible on picture stream on iPhone 4, IOS 7. Is this a bug with IOS 8.1.3?

    Try:
    - Reset the iOS device. Nothing will be lost      
    Reset iOS device: Hold down the On/Off button and the Home button at the same time for at
    least ten seconds, until the Apple logo appears.
    iOS: Troubleshooting Messages
      iOS: Troubleshooting FaceTime
    - Sign out and then sign back into Messages and FT. Note you will lose all messages presently on the iPod
    - 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. See:                                               
    iOS: Back up and restore your iOS device with iCloud or iTunes      
    - Restore to factory settings/new iOS device.                       

  • How do u get the data from server? if server send by bytes?

    how do u get the data from server? if server send by bytes?
    i have tried using bufferedinputstream to get the data n getting the bytes but there is some data missing.i couldnt all data.so my image cant be display

    If you don't get helpful replies, I suggest you try to improve your question style a bit. There are many non native English speakers around here and the ability to phrase slick sentences varies. But for a start you could try to adhere to minimal English language standards like starting a sentence with an uppercase letter, and ending a sentence with a dot and a blank to separate it from the next sentence. Don't use ellipses (...) all over the place suggesting that the reader knows what you want to say. Rather please say it.
    Its is good style to only post the necessary code to understand the problem. However, the code you posted seems to be cut off too early to even get a grasp at what you are trying to achieve.
    Harald.
    BioMed Information Extraction: http://www.ebi.ac.uk/Rebholz-srv/whatizit

  • If I delete all the pics n movies from camera roll.r they gonna b deleted from iCloud as well?n is photo stream connected to iCloud?

    If I delete all the pics n movies from camera roll.r they gonna b deleted from iCloud as well?n is photo stream connected to iCloud?

    Welcome to the Apple Community Hamza.
    Firstly, photo stream doesn't save videos, secondly, it may not have all your photos saved in it, it only keeps photos for 30 days.
    Back up your photos to a computer or online photo storage facility, before deleting them from your phone.

  • Here's a dumb ? I'm trying to find out how I can print from my ipad. I read about air streaming printers. so is a wireless printer considered an air streaming printer. i have 1 pc, my mac

    here's a dumb ? I'm trying to find out how I can print from my ipad. I read about air streaming printers. so is a wireless printer considered an air streaming printer. i have 1 pc, my mac

    If you already have a printer, you can probable use a program like, printopia to let your mac share your printer with the iOS device like your iPad. The catch being your computer has to be on, and not asleep, for the printer to work with your iPad.
    If you need a printer that is airprint ready, you can find a list on AirPrint, wireless printing straight from your iPad. Check out the bottom of the page where it says works with airprint enabled printers. There are even links on the page so you can buy the printers right from Apple's website.

  • Detecting END or Stream turned off in OSMF  -- Live Stream

    Hi all
    i am using the OSMF player to stream live events.  When the stream ends or if the feed is turned off the player throws a BUFFER state change which my code catches and shows a loading spinner, but how do i detect if the stream has ended or turned off while the user is watching?  Also will be helpfull if I want to post roll some ad or something.   I could mickey mouse it i guess if it throws BUFFER EMPTY and set a timer but there has to be an easier way to do this.
    anybody?
    thanks
    Corey

    it appears Akamais test player counts the bytes loaded when the buffer empties and sets a timer (what I thought! hey, im smart!) and then checks again and if the bytes are different it dispatches an event which backs the feed back to the start (or stops completely if FORCE LIVE is set)
    now, how to know if the feed is live or memorex (ie- archived)
    anybody? beuhler? beuhler?

  • Flooded with error: Table RequestUsage_PartitionX has 442892288 bytes that has exceeded the max bytes 442857142

    Hi all,
    Since last week my 2013 farm (3 WFE, 3 App server, SQL 2012) application event log flooded with error every 5 minutes.
    Table RequestUsage_PartitionX has 442892288 bytes that has exceeded the max bytes 442857142. 
    I have google the error and only found Steve Mann's blog discussing about this.  Yet there is no additional information in terms of how to fix it.  Just wondering if anybody has seen this and know how to fix it? 
    Appreciate any suggestion and thanks in advance.
    Sally

    Hi  Sally,
    Thank you for your posting!
    For your error, it is coming from the Usage Infrastructure. The root cause is that your SharePoint Server  usage data is exceeding the daily partition size for the logging DataBase.
    For more detailed information, you can refer to the blog:
    Blind spots in Usage file and Web Analytics Reports
    Thank you for your understanding and support.
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

  • TS3989 Cannot get Photo Stream to sync on Windows 8.1.  Shared streams work fine, but not personal stream.  ANYONE please advise...

    Cannot get Photo Stream to sync on Windows 8.1.  Shared streams work fine, but not personal stream.  ANYONE please advise...

    Videos in a shared Photo Stream can only be streamed, they cannot be downloaded.

  • Table RequestUsage_Partition14 has 445538304 bytes that has exceeded the max bytes 442857142

    Dear All,
    Since last 4 weeks my SharePoint 2013 Farm facing Error in Event Ever such as "Table RequestUsage_Partition14 has 445538304 bytes that has exceeded the max bytes 442857142"
    Kindly do let me know how we can resolve this issue.
    Thanks in Advance.
    Pravin Dhulap

    Hi All,
    I have updated the below script on our test Environment and i am not bale to see this error in Error log.
    add-Pssnapin Microsoft.SharePoint.PowerShell
    $UsageDefinition = Get-SPUsageDefinition -Identity "Page Requests"
    $UsageDefinition.MaxTotalSizeInBytes = 21884901888
    $UsageDefinition.Update()
    and i have used smae script on PROD server but the i am still receiving same error.
    Kindly let me know if there are any settings needs to be done or not??
    Kindly provide the solution if anyone of you has it.
    Thanks.
    Pravin Dhulap

  • How to read from a text file one character at a time?

    Hello
    I wish to read from a text file in a for loop and that on every iteration i read one charachter and proceed to the next one.
    can anyone help me?
    Lavi 

    lava wrote:
    I wish to read from a text file in a for loop and that on every iteration i read one charachter and proceed to the next one.
    can anyone help me?
    Some additional comments:
    You really don't want to read any file one character at a time, because it is highly inefficient. More typically, you read the entire file into memory with one operation (or at least a large chunk, if the file is gigantic) and then do the rest of the operations in memory.  One easy way to analyze it one byte at a time would be to use "string to byte array" and then autoindex into a FOR loop, for example.
    Of course you could also read the file directly as a U8 array instead of a string.
    Message Edited by altenbach on 06-10-2008 08:57 AM
    LabVIEW Champion . Do more with less code and in less time .

  • Character Encodings when using Streams for Text

    hi there,
    i have a table with a key column (ordinary varchar) and a text column (memo field in ms access, connection is done via the jdbc2odbc bridge). if i read the stuff with ResultSet.getAsciiStream() everything is fine, i.e., printing the resulting strings looks ok. then i use this method to read it and write it into a second table with the same structure but using PreparedStatement.setCharacterStream(). now i read from the second table using ResultSet.getCharacterStream() and print the strings. but now they seem garbled. something with the text conversion must have gone wrong. i never set any character encoding so the encodings should all be default.
    any ideas?
    robert

    Can you confirm that the data has been stored to the
    second table correctly?
    Ie, is it getCharacterStream or setCharacterStream
    that's causing the problems?that's difficult to answer: if i use the access interface to look into both tables they look alike. especially the target table looks ok.
    but if i read the data with getCharacterStream() i get something that looks as if this had happened: during storing with setCharacterStream() for every character there seem to be two bytes stored in the table. after reading the output looks like every second character was ok and every other character seems garbled. so it looks like on reading not two bytes in the database made a character but only one so every second byte becomes crap.
    unfortunately there is neither method in Reader that allows for setting the encoding nor is there a variant of getCharacterStream() that accepts an encoding parameter. (the same holds for setCharacterStream(); plus, if i create a StringReader there is no way to set the encoding.)
    do you have still any ideas?
    robert

Maybe you are looking for

  • Failed to start managed server in weblogic server 9.2.1

    Before I'm using WebLogic 9.2.0 and the managed server can startup without any issue. Now, my environment is upgraded to WebLogic 9.2.1 and I'm experiencing a couple of problems. The major problem is that I cannot start my managed server anymore even

  • Adobe Premiere Elements 12 Incompatible Display

    I was up and running this software for a couple of months, then I stopped using it for about 2 weeks, then when i went to start it up I got this error. My driver is up to date, I am using a M4000. I am just lost now, and its getting my mad, Thanks fo

  • Editing Red Dragon Raw 6k Footage with Premiere CC and/or CC 2014 - Which is better and what issues should I expect?

    Hi All As the title asks; 1. Are there any known issues when Editing Red Dragon raw 6k footage in Premiere Pro CC/CC14 ? 2. Which version of the software would be the best choice ? CC/CC 2014 (I have both) This is my first Red Dragon 6k Project in pr

  • Lumia 800 DEAD

    Hello fellow Lumia users, My Lumia800 completely dropped dead about 24 hours ago. What happened back then is that I left it in my coat pocket for several hours, and when I attempted to use it, it didn't even light up. The screen was black, and when I

  • Black textboxes displayed in 3rd party form

    Hello I am calling a 3rd party application form that contains various control like textboxes and radiobuttons etc. When I launch this form from within the C3PO, some textboxes are black. This only happens when I launch the form as part of the C3PO. I