Append a text line on blob data.

Hi All,
I need append a text line on blob data.
I haven't found prosper example or guide yet.
Following is example blob data which i should handle with.
Date: Thu, 29 Oct 2009 18:36:56 +0900 (KST)
From: IBM
To: IBM
Subject: JavaMail Attachment
Mime-Version: 1.0
Content-Type: multipart/mixed;
     boundary="----=_Part_10_1177830964.1256809016187"
------=_Part_10_1177830964.1256809016187
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Ideas
------=_Part_10_1177830964.1256809016187--
and I should add a new line on head of above blob data like this,
Message-ID: <1631215930.1256809016203.JavaMail.SYSTEM@ibm-demo>
so what i want is every blob data which doesn't have Message-ID line, update with random msg id.
please give me an tip or sample for this.
Thanks in advance,
Beomwoo.

I have to develop some program which correct abnormal email data of Oracle Collaboration Suite mail 10g.
OCS store the mail body into a blob column named as body on es_body table.
Normal mail body have to include Message id header information like following.
Message-ID: <[email protected]>
Date: Sat, 31 Oct 2009 19:48:04 +0900 (KST)
From: bbuser1 kim <[email protected]>
To: bbuser1 kim <[email protected]>
Subject: 111111111111111
Mime-Version: 1.0
Content-Type: text/plain;charset=US-ASCII
Content-Transfer-Encoding: 7bit
Accept-Language: en-US
X-Mailer: Oracle Collaboration Suite Web Access 10.1.2.4.3
When a message body doesn't have the message id line on first line.
I want add random message id on first line.
So, What i want exactly is how to update blob column data with adding a line like 'Message-ID: <[email protected]>'.
Any idea?
Thanks in advance,
Beomwoo.

Similar Messages

  • How to append new text line to Notification header long text

    In sevice notification , I  append new text to notification header long text . I try FMi write_text, but it will overwrite the existed text , PLS HELP!

    Hi,
    Make  use of the FM "IQS0_ADD_NOTIFICATION_LONGTEXT".
    This will append the new lines to the existing long text.
    Make sure to put "X" for the import parameter "POST".
    Hope this will help you.
    Regards,
    Smart Varghese

  • Appending a text line

    Hi,
      In my scenario i have to concatenate all the contents of the text and then pass to a FM.
    The sample contents is like this.The vendor details should be taken from internal table.The value to be passed to internal table is present in gi_objtxt.In my case all the lines are coming in a single line.How to get it like the below mentioned contents.Please help.
    Code:
    gv_text0 = 'Hi,'.
    *Getting vendor number
      LOOP AT gi_vendor INTO gw_vendor.
        CONCATENATE gv_vendor gv_text4 gw_vendor-lifnr INTO gv_vendor  SEPARATED BY space.
        CONCATENATE gv_line gv_text4 gw_vendor-lineitems INTO gv_line   SEPARATED BY space.
        gv_text4 = ','.
      ENDLOOP.
      CONCATENATE gv_text0 gv_text gv_vendor gv_text1 gv_line gv_text2 gv_text3 INTO gv_mtext SEPARATED BY space.
      gv_text5 = 'Please check .'.
      gv_text6 = 'Thanks.'.
      CONCATENATE gv_mtext  gv_text5 gv_text6 INTO gv_mtext.
      APPEND gv_mtext TO gi_objtxt.
    Hi,
       The vendors 71,72 are not paid due to this reason.
    Please check.
    Thanks.

    Hi,
    do like this
    APPEND gv_mtext TO gi_objtxt.
    APPEND gv_text5 TO gi_objtxt.
    APPEND gv_text6 TO gi_objtxt.
    or try this
    DATA:BEGIN OF ls_delimiter,                 "<CR/LF> delimiter
             up_crlf(2)       TYPE c,              "CR/LF (ASCII Hex'0D0A')
            END OF ls_delimiter.
    CALL FUNCTION 'FI_DME_CHARACTERS'
                IMPORTING
                  e_crlf = ls_delimiter-up_crlf.
    CONCATENATE gv_mtext ls_delimiter-up_crlf gv_text5 ls_delimiter-up_crlf gv_text6 INTO gv_mtext.
    Regards,
    Nagaraj
    APPEND gv_mtext TO gi_objtxt.

  • Extracting text from BLOB data

    Let me start by saying that I'm flying by the seat of my pants on this and I'm neither a CR expert nor can I write SQL. Short of a little basic back on my old Apple IIe (way back when,) my programming skills are essentially nil.
    That said, here's what I'm trying to acheive.
    I have created a report that uses an ODBC connection to an Oracle database. It works fine, all the tables are properly linked and it delivers a properly functioning report. I now need to extract some text from a BLOB field. I have all the necessary tables added to the report and I've linked them as well. However, when I add an SQL expression and paste in the  SQL string that uses the function, "getprop" to try to extract the necessary text from the BLOB data, I get the error: "missing expression"
    I notice that within the SQL Expression editor, the field for the BLOB data is not listed in the table in which it resides, though the non-BLOB fields are listed. That is, when I say: select getprop(sl.blobdata,'confirmCompany'), there is no sl.blobdata field which I believe is the source of the "missing expression" error.
    If I create a new blank report and simply paste the SQL in as a command in the Database Expert, it will deliver the expected results. I get the two fields I need. This means the SQL string is fine. But, of course, all the other columns I need are not available. As I mentioned above, I can't write SQL and I have a fully functional  report that has everything except the two columns i want to add from the BLOB field.
    However if I go back to my complete report and add the SQL as a command in the Database Expert, it then asks me to link the fields to the other tables already in the report and that just doesn't work.
    I apologize for any mucked up terminology and general concept confusing statements I've made above and hope someone will be able to help me out.
    Thanks in advance.
    ~m

    So, in this case you might create a subreport that has
    "the SQL in as a command in the Database Expert, it will deliver the expected results. I get the two fields I need. This means the SQL string is fine. But, of course, all the other columns I need are not available. As I mentioned above, I can't write SQL and I have a fully functional report that has everything except the two columns i want to add from the BLOB field. "
    of course, this will return all the results, every time it gets kicked off, this is why having something to link to is handy.
    You can filter the subreport data, based on main report parameters, if that will help.

  • I am using pages '09. I have been trying to put together a report and I am using tables to help keep my data in line. My data is free text and would like to footnote certain data as to it origin, but footnoting is grey-out. How can I footnote on table mod

    I am using pages '09. I have been trying to put together a report and I am using tables to help keep my data in line. My data is free text and would like to footnote certain data as to it origin, but footnoting is grey-out. How can I footnote in table mode inpages '09?

    Footnotes can only be inserted in the main text area between the margins on a Word Processing document.
    Peter

  • Help : Getting Problem with CLOBand BLOB data types

    Hi All
    could any one suggest me that i store maximum data in oracle data type for that which data type i have to use?
    Thanks
    Edited by: Ajay Patel on Oct 3, 2008 11:13 PM

    Hi,
    Don't go for BLOB as its suggested to take for Non text files for that data type.
    Try to use CLOB, which will be useful for your requirement.
    I don't have idea on PHP..
    But for you understand purpose....!! demo
    15:30:12 zug7_real>CREATE TABLE TBLSAVEDPROPOSAL
    15:30:12   2  (
    15:30:12   3  TEXTCONTENT CLOB
    15:30:12   4  );
    Table created.
    15:30:14 zug7_real>INSERT INTO TBLSAVEDPROPOSAL VALUES(3, '<HTML>France is in Eu
    rope.</HT');
    INSERT INTO TBLSAVEDPROPOSAL VALUES(3, '<HTML>France is in Europe.</HT')
    ERROR at line 1:
    ORA-00913: too many values
    15:30:37 zug7_real>INSERT INTO TBLSAVEDPROPOSAL VALUES('<HTML>France is in Europ
    e.</HT');
    1 row created.
    15:30:42 zug7_real>select * from TBLSAVEDPROPOSAL;
    TEXTCONTENT
    <HTML>France is in Europe.</HT
    15:30:51 zug7_real>desc TBLSAVEDPROPOSAL
    Name                                      Null?    Type
    TEXTCONTENT                                        CLOB- Pavan Kumar N

  • [svn] 4694: Don't remove text lines from the container if it isn' t the container the lines were added to.

    Revision: 4694
    Author: [email protected]
    Date: 2009-01-27 14:35:21 -0800 (Tue, 27 Jan 2009)
    Log Message:
    Don't remove text lines from the container if it isn't the container the lines were added to. When there is a state change the displayObject can be switched out from under the TextGraphic and TextBox.
    QE Notes: need to add tests - will attach my test program to bug
    Doc Notes:
    Bugs: SDK-18923
    Reviewers: Gordon
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-18923
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/TextBlockCompose r.as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/graphics/graphicsClasses/TextFlowComposer .as

    Yup, you guys pointed me in the right direction.
    I changed my adjustmentListener to the following:
    JScrollBar scrollBar = (JScrollBar) e.getSource();
    int endLoc = document.getLength();
    try {
        Rectangle end = outputArea.modelToView(endLoc);
        if (end != null) {
            int n = scrollBar.getValue() + scrollBar.getVisibleAmount();
            boolean locked = (end.y >= n && n <= (end.y + end.height));
    } catch (BadLocationException ex) {
    }By comparing scrollbar position with the visible rectangle of the end of the document, I can now easily tell if the user has moved the tracker back or not.
    To go to the next step of automatically pausing scrolling whenever the user is moving the slider back, I also had to disable the automatic scrolling performed by DefaultCaret. Because there was no way to tell if the user was scrolling or if the output was adjusting from the adjustmentListener, I also had to flag whenever I was autoscrolling.
    The end result is a JTextPane that can be appended to at all, and locked by the user by using the slider. If new data arrives, the window is not scrolled, and any text selection the user has is not cleared. Perfect!

  • Expanding text field to hold data

    This sounds like a pretty simple problem, but... I have created a form using Designer that consists for 4 text boxes that span the width of the page. We are using a middleware product, LogiXML, to populate the form. We have successfully accomplished getting the data to appear in the text fields, but the data is being cut of because of the size of the boxes. I have selected the check box to allow the box to expand and to allow mutiple lines. This doesn't seem to have any effect. Am I missing something here?
    Thanks.

    The only field type that'll let you have multiple lines of text is a text edit. With that object, you can check the
    Allow multiple lines property on the Object palette's Field tab and check the
    Expand Height (in your case since the text fields are side-by-side) property on the Layout palette.
    The combination of these two properties should get you text fields which display their content in total visibility.
    If that still doesn't work, then it's possible you haven't saved your form as a
    Dynamic PDF form (or, if you've saved your form as XDP, that you aren't previewing it as a Dynamic PDF form).
    If you think your problem is the preview type (i.e. you're not previewing as a dynamic PDF), the following entry on my blog should help you out:
    Previewing as Dynamic PDF.
    Stefan
    Adobe Systems
    You can set the default preview type (for unsaved files) in the "Tools | Options" menu on the
    page and you can set the preview type for saved files in the "File | Form Properties" menu's
    Defaults page.

  • Sales Order Text Lines in SAP Query

    I have a requirement to output several text lines into a SAP query based around sales orders.
    I have included some code to read the details into my query and get no syntax errors, however the report gives a blank output for each of the text fields included, despite there definitely being some text with the specified attribute ID and text object in the table STXL.
    Where am I going wrong?
    Please find the coding below for one of the text field I'm trying to extract:
    TABLES:STXL.
    DATA:
        VBELN LIKE VBAP-VBELN,
        POSNR LIKE VBAP-POSNR,
        TDNAME LIKE STXL-TDNAME,
        MYLINE LIKE TLINE-TDLINE,
        ZE18_LINE(1200) TYPE C.
    DATA:BEGIN OF LINES OCCURS 0.
            INCLUDE STRUCTURE TLINE.
    DATA:END OF LINES.
    DATA:BEGIN OF MYHEADER.
            INCLUDE STRUCTURE THEAD.
    DATA:END OF MYHEADER.
    CLEAR TDNAME.
    CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
    EXPORTING
      INPUT = VBAP-VBELN
    IMPORTING
      OUTPUT = VBELN.
      CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
    EXPORTING
      INPUT = VBAP-POSNR
    IMPORTING
      OUTPUT = POSNR.
      CONCATENATE VBELN POSNR INTO TDNAME.
    CALL FUNCTION 'READ_TEXT'
        EXPORTING
            ID = 'ZAT2'
            LANGUAGE = SY-LANGU
            NAME = TDNAME
            OBJECT = 'VBBP'
         IMPORTING
            HEADER = MYHEADER
         TABLES
            LINES  = LINES
    EXCEPTIONS
            ID = 1
            LANGUAGE = 2
            NAME = 3
            NOT FOUND = 4
            OBJECT= 5
            REFERENCE_CHECK = 6
            WRONG_ACCESS_TO_ARCHIVE = 7
            OTHERS = 8.
    IF SY-SUBRC = 0.
      LOOP AT LINES.
        MOVE LINES-TDLINE TO TEXT.
        ENDLOOP.
    ENDIF.

    Hi -
    Please check in debuging.
    check the value of TDNAME correctly populated with sales order no and sales order item.
    You can cross check with the table STXH with TDNAME and see if any entries is available for TDID 'ZAT2' as your case.
    Here are sample code.
    DATA :    lv_tdname TYPE tdobname,
                     lw_line TYPE tline,
                    li_line TYPE STANDARD TABLE OF tline.
    CLEAR : lv_tdname , li_line[],
    cocatenate w_vbak-vbeln w_vbap-posnr into lv_tdname.
    CALL FUNCTION 'READ_TEXT'
      EXPORTING
        id                      = 'ZAT2'
        language                = 'E'
        name                    = lv_tdname
        object                  = 'VBBP'
      TABLES
        lines                   = li_line
      EXCEPTIONS
        id                      = 1
        language                = 2
        name                    = 3
        not_found               = 4
        object                  = 5
        reference_check         = 6
        wrong_access_to_archive = 7
        OTHERS                  = 8.
    IF sy-subrc = 0.
      CLEAR lw_line.
      loop at li_line INTO lw_line .
    * Put your logic
      endloop.
    ENDIF.

  • My group box is causing problems when searching for a text line in a text file.

    I am developing a booking system, so for this I need to ensure that no two clients can book the same appointment slot. So, on testing my code which prevents double booking, the system doesn't seem to find the text line being searched for in the text file
    when it (purposefully) should.
    I have tried isolating the problem using breakpoints, and I've found that when the 'SearchLine' (referring to my code below) does not include the 'TimeComboBox.text' piece and instead this value is written into the code, the system is able to find the SearchLine
    without any problems. But, when assigning the group box's value to a variable and using this in the SearchLine instead, or without even using a loop and just doing a simple line by line search, the program can't find this line of text in the file.
    I'm lost for ideas. I have tried everything I can think of. Could anyone make any suggestions as for what is the problem with my group box? (I'll explain the code beneath it).
    'Setting the value of the SearchLine (which is a String)
    SearchLine = String.Concat(DateTimePicker1.Value.Date & " " & TimeComboBox.text)
    Dim FoundApp As Boolean
    Dim objReader As New System.IO.StreamReader(basicfilepath & "Text Files\Client Booked Appointment DatesTimes.txt")
    FoundApp = False
    'Reading the file's contents and checking for the SearchLine
    Do While (objReader.Peek() <> -1) or (FoundApp = True)
    If (TextLine = SearchLine) Then
    'Line contains SearchLine. Appointment already exists.
    FoundApp = True
    Else
    'Line doesn't contain SearchLine. Carry on searching.
    Msgbox("Line not found.")
    End if
    Loop
    Explanation
    When the line is searched for, the 'FoundApp' value must be set to 'True' when it is found. If it is not found, it remains false.
    To isolate the problem, I've displayed the SearchLine in a message box in the past to make sure that the correct line of text is being searched for.
    In basic terms, my program is searching for the exact line of text which exists in the text file, but for some reason it is not coming up as 'Found'. The error occurs when the group box's value is used. The text file which is being read is
    definitely correct. Please help, any suggestions would be appreciated.
    Thank you

    Hi
    It would appear that your snippet doesn't actually read the file at all.
    Here is my test which works fine.
    Option Strict On
    Option Infer Off
    Option Explicit On
    Public Class Form1
    Private Sub Form1_Load(sender As Object, e As EventArgs) Handles Me.Load
    Dim SearchLine As String = "18:09:38 : XTaskSettings.Load PARAMS: begin"
    Dim FoundApp As Boolean = False
    Dim TextLine As String = Nothing
    Dim objReader As New IO.StreamReader(Application.StartupPath & "\Data\Report Q1.txt")
    FoundApp = False
    Do While (objReader.Peek() <> -1) Or (FoundApp = True)
    ' this was missing
    TextLine = objReader.ReadLine
    If (TextLine = SearchLine) Then
    'Line contains SearchLine. Appointment already exists.
    FoundApp = True
    MsgBox("Line found.")
    Else
    'Line doesn't contain SearchLine. Carry on searching.
    MsgBox("Line not found.")
    End If
    Loop
    End Sub
    End Class
    Regards Les, Livingston, Scotland

  • How can i save and retrieve blob data through forms and reports...

    I have blob data type column and I want to save word, html, gif
    document in oracle database through forms 6 and retrieve the
    data into forms and reports.
    Details : I want to open .doc,.html,.gif file through a button
    and save it ..and i want retrieve the data into text item same
    in reports....
    If anybody have the answer then send me at
    [email protected]

    use ole container
    initialize the container with the filename (doc or gif)
    Edited by: arshid on Feb 8, 2009 1:57 PM

  • Inserting blob data into database

    Hello everybody,
    I need insert blob data into database. that data i need to get from form
    can i use request.getParameter(""); for getting that file.
    Plz help how to get data from form to servlet and through callablestatement i need to insert into database.
    regards,
    Anil

    Hi,
    1) first create a form with file element
    first.jsp
    <form action="GetData" enctype="multipart/form-data" method="post">
    <input type="file" name="datafile" size="40">
    <input type="submit" value="Send">
    <input type="reset" name="Reset" value="Cancel">
    </form>
    GetData.java
    // servlet file
    public void doPost(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException
    res.setContentType("text/html");
    PrintWriter out = response.getWriter();
    try {
    System.setProperty( "jdbc.drivers", "com.microsoft.jdbc.sqlserver.SQLServerDriver" );
    Class.forName( "com.microsoft.jdbc.sqlserver.SQLServerDriver" );
    con = DriverManager.getConnection( "jdbc:microsoft:sqlserver://localhost:1433;DatabaseName=JAVATEAM;SelectMethod=cursor;User=sa;Password=urpassword" );
    PreparedStatement pst = con.prepareStatement("insert into uploads(binaryfile) values(?)");
    FileInputStream fis=new FileInputStream(request.getParameter ( "datafile" ) );
    byte[] b= new byte[fis.available()+1];
    fis.read(b);
    pst.setBytes(1,b);
    pst.executeUpdate();
    pst.close();
    con.close();
    catch(SQLException e)
    out.println ( e);
    catch (ClassNotFoundException e)
    out.println( e );
    }Here in doPost(), i create preparedstatement,
    now you to create one procedure for insert
    and by using callable statement you just call that procedure and pass this byte b as arguments,
    now its in your hands
    my idea is over.

  • Tg4msql - Blob Data Type Support(Oracle 8i - sql server 2000)

    hi,
    We are trying to replicate the data from oracle 8i to sql server 2000 through tg4msql.if we want to replicate the data thet contains the blob field , we are getting invalid expression in the procedure marked with error line.
    the procedure i am using is as follows
    CREATE OR REPLACE PROCEDURE INSERT_SQL
    AS
    BEGIN
    FOR VAL_CURSOR IN
    --Get the Data from the table with status 0
    SELECT rs_report_rowid FROM BIJU.rs_report where rs_report_status = 0
    LOOP
    for new_cursor in
    --get the details of the record with the row id
    select id ,name,DOB from biju.sample where rowid = val_cursor.rs_report_rowid
    LOOP
    ---insert the data from oracle to sql where the oracle data type contains blob(here photo field data type is blob).
    Error Line: insert into [email protected](id,name,photo) values(new_cursor.id,new_cursor.NAME,new_cursor.DOB);
    END LOOP;
    END LOOP;
    COMMIT;
    END;
    i want to know that tg4msql won't support the blob data type on the oracle end?we configured blob eqivalent in sql server as binary.Any help or suggestion regarding this are welcome..
    regards
    Srini

    Srini,
    Support for LOB was added in v9.2. It is not supported in 8i.

  • BLOB data and SQL Loader

    Has any one used SQL Loader for BLOB data? I would think you can only use it for text type data.
    Thanks,
    Vic

    If each blob is in a separate file, then you should be able to use LOBFILES to load them. Each row in the data file would need to have the name of the file containing the blob for that row. File ulcase9.ctl in the demo directory shows an example of using LOBFILES to load a lob column.
    If you want the blob in the data file, then the data file needs to use types that have include length information in then, such as VARRAW, LONG VARRAW or VARRAWC. Also, the records for the data files cannot be terminated by a character string or newline. That's because the blob data might contain the character string or newline in the middle of its data. Instead, you would need to use the VAR record type.

  • Append report text.vi

    Hi all,
    Is there a way to amend this vi so that it will centre text or perhaps invent a new one?
    I would greatly appreciate it as i need to centre alot of text on the page i print and can find no easy way to do it
    Its just a standard report not an excel or word
    Thanks
    Mike
    Message Edited by MikeW1973 on 03-11-2008 12:08 PM

    You can certainly open the Append Report Text vi and modify it as you please.  You should rename it though.  If you ever re-install the report generation toolkit, it would overwrite your changes if you didn't rename it.  However, I don't know how you would go about centering the lines you want to append.  Perhaps counting the number of characters in the line to determine the number of blank spaces needed to be inserted in order to center the line.
    - tbob
    Inventor of the WORM Global

Maybe you are looking for

  • Error in Gate Entry

    Hi,     can any one guide me in soving this issue. The issue is when i executing the gate entry table in se16 in getting dump error "DBIF RSQLSQL_ERROR" Runtime Error       DBIF_RSQL_SQL_ERROR Except.                CX_SY_OPEN_SQL_DB Date and Time   

  • Dynamic buckets in ageing report

    Hi All,    I am working on Stock Ageing report in which I have buckets like 0-30, 31-60, 61-90, >90.  But user wants dynamic bucket ranges. Like he may be interested in a bucket of difference 20 or 30 or 40 etc. How can I make buckets dynamic. Regard

  • Maxed Out Processor - Viewing Here, fans on.

    Apple definitely changed this forum to something my MBP doesn't like any more. This is a MacBookPro 09 - 13"  -  10.06 08  -  Proc - 2.53 / Core 2 Duo I just posted a fix for a problem I was having - and my Processor went off the chart and fans came

  • Print cartridge didn't work

    I bought a 901 XL black cartridge months ago and don't have the purchase receipt.  When I installed it, it wouldn't print even though the ink level showed full.   I installed another cartridge and it worked fine.  Is there anyway that I can "wake up"

  • Why does Firefox not include FOX NEWS in their pre-loaded "News" tab on the toolbar???

    There are 9 different "news" sources. It seems that everybody is so biased against Fox News, yet they produce legitimate news as every other network. Please change this, Firefox, for all your users.