JTextPane and inserting/deleting image

Hi,
I have problems with my jtextpane. I am usign jtextpane do make simple richeditor.
I can insert image, and no problem with inserting
But after that, where content of jtextpane is saved and opened again, image is not able to delete...
If is there any solution?
Sorry for my broken English.

Hi everyone,
Does the image get saved when you serialize the document?
What are you doing to serialize the document by using xml or by serializing it as an object or by using the rtf kit
Richard West

Similar Messages

  • Firefox and Inserting an image

    Just noticed this one this morning when I tried to put a logo into one of my posts.
    Clicking the Insert Image button will bring up the dialog box.  But clicking the Browse button will cause Firefox to freeze and become unresposive.  The only way out of it is to click the close button until Firefox crashes. 
    Patrick Allen

    Hi Laura,
    I'm using Firefox 3.6.12
    I can confirm though that GMail is also displaying the same behavior this morning.  Trying to browse for a file attachment hangs the browser.  So it sounds like a FF issue. 
    Patrick Allen

  • Spacing of Spry Menu submenu items, and inserting background images

    Hiya, need a bit of help, could someone possibly guide me with this?
    I've created a Spry Menu in DW CS5 - so far, so good.. However I'm pretty new to CSS Styles so need pointers at what to change to get the result I need. I've created the spry menu, however the submenu dropdown items are not flush to the ones above, theres a 1px horz gap between each item and while it looks okay, its particularly visible in Firefox and Chrome and would prefer no spacing at all..
    The live site is at http://www.ebm.co.uk/2011site/indexnavbar2.html
    if you take a look at the drop down menu bar you'll see what i mean - what do I need to do to remove the spacing?
    I also want to replace the solid colour with images, where do I specify the images for 1) top menu item 2) submenu item and 3) 'hover' item, and do I need to make any areas transparent?
    Any advice would be much appreciated.. thanks!
    Chris

    This is a good place to start http://www.dwcourse.com/dreamweaver/ten-commandments-spry-menubars.php.
    Also this might help http://labs.adobe.com/technologies/spry/samples/menubar/CenteringHorizontalMenuBarSample.h tml
    Gramps

  • Get graphics of JTextPane and write into image

    Hi!
    i want to get graphics of textpane including images ,text position font and every thing in it and desiring to write in an image text should be in same alignment too.

    I'd try as follows:
    1. Create a BufferedImage.
    2. Pass the graphics object of this BufferedImage to the paint() method of the respective text pane.

  • PHP 5 Code to Upload and Retrieve an Image (aka BLOB) with Oracle

    I keep being asked about BLOBs. For posterity, here is my example updated
    to use the new PHP 5 OCI8 function names, and using bind variables for the BLOB id.
    -- cj
    <?php
    // Sample form to upload and insert an image into an ORACLE BLOB
    // column using PHP 5's OCI8 API. 
    // Note: Uses the new PHP 5 names for OCI8 functions.
    // Before running this script, execute these statements in SQL*Plus:
    //   drop table btab;
    //   create table btab (blobid number, blobdata blob);
    // This example uploads an image file and inserts it into a BLOB
    // column.  The image is retrieved back from the column and displayed.
    // Make sure there is no whitespace before "<?php" else the wrong HTTP
    // header will be sent and the image won't display properly.
    // Make sure php.ini's value for upload_max_filesize is large enough
    // for the largest lob to be uploaded.
    // Tested with Zend Core for Oracle 1.3 (i.e. PHP 5.0.5) with Oracle 10.2
    // Based on a sample originally found in
    //     http://www.php.net/manual/en/function.ocinewdescriptor.php
    $myblobid = 1;  // should really be a unique id e.g. a sequence number
    define("ORA_CON_UN", "hr");             // username
    define("ORA_CON_PW", "hr");             // password
    define("ORA_CON_DB", "//localhost/XE"); // connection string
    if (!isset($_FILES['lob_upload'])) {
    ?>
    <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="POST"
       enctype="multipart/form-data">
    Image filename: <input type="file" name="lob_upload">
    <input type="submit" value="Upload">
    </form>
    <?php
    else {
      $conn = oci_connect(ORA_CON_UN, ORA_CON_PW, ORA_CON_DB);
      // Delete any existing BLOB so the query at the bottom
      // displays the new data
      $query = 'DELETE FROM BTAB WHERE BLOBID = :MYBLOBID';
      $stmt = oci_parse ($conn, $query);
      oci_bind_by_name($stmt, ':MYBLOBID', $myblobid);
      $e = oci_execute($stmt, OCI_COMMIT_ON_SUCCESS);
      if (!$e) {
        die;
      oci_free_statement($stmt);
      // Insert the BLOB from PHP's tempory upload area
      $lob = oci_new_descriptor($conn, OCI_D_LOB);
      $stmt = oci_parse($conn, 'INSERT INTO BTAB (BLOBID, BLOBDATA) '
             .'VALUES(:MYBLOBID, EMPTY_BLOB()) RETURNING BLOBDATA INTO :BLOBDATA');
      oci_bind_by_name($stmt, ':MYBLOBID', $myblobid);
      oci_bind_by_name($stmt, ':BLOBDATA', $lob, -1, OCI_B_BLOB);
      oci_execute($stmt, OCI_DEFAULT);
      // The function $lob->savefile(...) reads from the uploaded file.
      // If the data was already in a PHP variable $myv, the
      // $lob->save($myv) function could be used instead.
      if ($lob->savefile($_FILES['lob_upload']['tmp_name'])) {
        oci_commit($conn);
      else {
        echo "Couldn't upload Blob\n";
      $lob->free();
      oci_free_statement($stmt);
      // Now query the uploaded BLOB and display it
      $query = 'SELECT BLOBDATA FROM BTAB WHERE BLOBID = :MYBLOBID';
      $stmt = oci_parse ($conn, $query);
      oci_bind_by_name($stmt, ':MYBLOBID', $myblobid);
      oci_execute($stmt, OCI_DEFAULT);
      $arr = oci_fetch_assoc($stmt);
      $result = $arr['BLOBDATA']->load();
      // If any text (or whitespace!) is printed before this header is sent,
      // the text won't be displayed and the image won't display properly.
      // Comment out this line to see the text and debug such a problem.
      header("Content-type: image/JPEG");
      echo $result;
      oci_free_statement($stmt);
      oci_close($conn); // log off
    ?>

    I am using oracle 10g [10.2.0.1.0] and PHP 4.3.9 with Apache.
    I tried my best to change the old functions names for example(oci_fetch)
    to the new (OCIFetch),i works every where, but i could not find the corresponded functions of (oci_fetch_assoc) that's why i can not see my BLOBS at all!
    Can some help me please, to know where are corresponded functions of oracle 8 to oracle 10g?
    Exactly here is my problem:
    $query = 'SELECT BLOBDATA FROM BTAB WHERE BLOBID = :MYBLOBID';
    $stmt = ociparse ($conn, $query);
    OCIBindByName($stmt, ':MYBLOBID', $myblobid);
    ociexecute($stmt, OCIDEFAULT);
    $arr = oci_fetch_assoc($stmt);
    // OCIFetchAssoc, OCIFetch, OCI_ASSOC ... nothing works-> Fatal error: Call to undefined function:
    $result = $arr['BLOBDATA']->load();
    What should i do?
    Thanky very much.

  • Export to PDF and Excel. Image

    Hi gurus!
    How do you do!, well, I have a question and issue... the user wants to export the report to PDF, for this, I have created a WAD report with Broadcasting command for export to PDF, all works fine, however the company logo is not added to PDF document or Excel document... it´s not correct, although I dont know if the standard function can add logo when we use export function...
    One thing, in WAD report, we can see the image, logo company...
    Somebody can help me, is it possible to add image when we use export? or SAP does not permit it.
    BR

    Hi,
    1.Open the template "0ANALYSIS_PATTERN" and insert an Image from MIME Repository(bwmimerep:///sap/bw/mime/Customer/Images/...)
    2.Insert a Button item and assign the COmmand Export to PDF
    3.Save the template,Execute
    4.You will able to see the image in the report.Click the button to Export to PDF
    Now the image will be seen in the exported PDF file
    Rgds,
    Murali

  • How to insert /retrieve images ??

    hi everyone...
    i want to get image from my filesystem onto my form and insert the image into oracle 10g database from my form using forms 6i
    and
    i want to retrieve images from oracle 10g database onto forms using forms 6i.
    if possible i want to generate a report to print the retrieved images from my form using forms 6i.
    please kindly help me with detail coding as i'm new to forms and i had given to perform the above task.
    thanks in advance
    Regards,
    Santosh.Minupurey

    create a table with 2 fields (label varchar2(25) ,image blob)
    create a data block with the above table
    place 2 buttons (get and save) on the form
    trigger for get_button (// when_button_pressed event)
    read_image_file(:block_name.text_item_name,'jpg',blockname.image_item_name); --this will retrieve image from the local system and place it on the image item
    (enter the full path of image with extension in text_item after complie)
    trigger for save_button (// when_button_pressed event)
    read_image_file(:block_name.text_item_name,'jpg',blockname.image_item_name);
    commit; --saves it in the database
    sorry but i couldn't retrieve it from database....

  • Outlook 2013 (and up) squashing images when received on certain devices.

    When we create an email inside of Outlook 365 and insert a image (in-line) into the mailer we have a lot of layout problems.
    The email looks fine when sent to a desktop PC, but when it goes out to a Notebook running a version of Outlook after 2007 the image gets squashed in the direction of alignment
    (ie, left aligned imaged gets squashed to the left).
    The copy layout is fine , and if it is built inside of a table then the table or table cells do not adjust. Only the images get distorted. We are picking this problem up more
    as more people buy new machines and or migrate to a newer versions of Outlook.
    We have tried saving images as 96dpi/ppi and tried numerous fixes found online, but most relate to Outlook 2007 and down, and none seem to work. Unfortunately our
    clients often require the images to be inserted (inline) rather than being linked to a hosted image. When we send the same email to an Gmail account the images display perfect, it only appears to be an issue when sending to Outlook.
    Is there a way to get around this issue or to fix it? 
    Thanks

    Can you post a screenshot of this and the accompanying HTML source?
    Without that, it is hard to judge where this could be coming from.
    Robert Sparnaaij
    [MVP-Outlook]
    Outlook guides and more: HowTo-Outlook.com
    Outlook Quick Tips: MSOutlook.info

  • Problem regarding insert and Display BLOB Image in Tabular form

    I am trying to display and insert image in manual tabular form In Oracle APEX. but the image i uploaded was not inserted in wwv_flow_files table and in update button process i got "no data Found" Error...pls someone help me.... some part of code is bellow... SQL CODE IN REPORT REGION OF TABULAR FORM :- {
    SELECT '#ROWNUM#' "SNO",
    +' <img height="30" width="50" src="#WORKSPACE_IMAGES#'||F.FILE_NAME||'" alt="'||S.stud_fname||'" title="'||S.stud_fname||'" border="1"/>'AS "IMAGES", --- for display image from my table which is loaded through wwv_flow_files+
    APEX_ITEM.CHECKBOX(01,s.stud_id) "DELETE",https:
    s.stud_id|| apex_item.hidden(02,s.stud_id) "STUD ID",
    +.......+
    +.......+
    union all -- for inserting row
    SELECT '#ROWNUM#' "SNO",
    +'<input type="file" name="F17" size="5">'AS "IMAGES", -- for display image+
    APEX_ITEM.CHECKBOX(01,NULL) "DELETE",
    null|| apex_item.hidden(02,null) "STUD ID", }
    When i click on UPDATE BUTTON then following PROCESS CODE IS run :
    FOR i IN 1..APEX_APPLICATION.G_F02.COUNT LOOP
    IF APEX_APPLICATION.G_F02(i)IS NOT NULL THEN
    UPDATE STUDENT SET stud_fname=APEX_APPLICATION.G_F04(i),
    stud_addr =APEX_APPLICATION.G_F05(i), ......
    ELSE
    insert into FILE_ATMNT(ATMNT_KEY, ATMNT_NAME, FILE_NAME, MIME_TYPE, ATMNT_SIZE, CNTNT_TYPE, ATMNT_CNTNT, AUDIT_CRT_DATE ) SELECT id, name, filename, mime_type, doc_size,content_type, blob_content, SYSDATE FROM wwv_flow_files WHERE name = APEX_APPLICATION.G_F17(i);
    SELECT id into upload_ref from wwv_flow_files where name =APEX_APPLICATION.G_F17(i);
    ........ ( code for student insert Record )
    FILE_ATMNT is my attachment table in my workspace which updated through wwv_flow_files. My problem is that when i was click on update button image is not loaded into "wwv_flow_files" table so i didnt get image name bcz of $ name =APEX_APPLICATION.G_F17(i);$ this. so its show me no data found error.... Pls help me

    Mahesh wrote:
    Hi...i am mahesh...Welcome to the forum: please read the FAQ and forum sticky threads (if you haven't done so already).
    You'll get a faster, more effective response to your questions by including as much relevant information as possible upfront. This should include:
    <li>Full APEX version
    <li>Full DB version and edition
    <li>Web server architecture (EPG, OHS or APEX listener)
    <li>Browser(s) and version(s) used
    <li>Theme
    <li>Template(s)
    <li>Region/item type(s)
    The best way to get help is to reproduce and share the problem on apex.oracle.com.
    All code should be posted wrapped in tags<tt>\...\</tt> tags to preserve formatting and prevent it being interpreted by the forum software.
    I am trying to display and insert image in manual tabular form In Oracle APEX. but the image i uploaded was not inserted in wwv_flow_files table and in update button process i got "no data Found" Error...pls someone help me.... some part of code is bellow... CODE IN  REPORT REGION OF TABULAR FORM :-
    SELECT '#ROWNUM#' "SNO",
    '<img height="30" width="50" src="#WORKSPACE_IMAGES#'||F.FILE_NAME||'" alt="'||S.stud_fname||'" title="'||S.stud_fname||'" border="1"/>'AS "IMAGES", --- for display image from my table which is loaded through wwv_flow_files
    APEX_ITEM.CHECKBOX(01,s.stud_id) "DELETE",https://forums.oracle.com/forums/post!default.jspa?forumID=137#
    s.stud_id|| apex_item.hidden(02,s.stud_id) "STUD ID",
    ....... (some code).
    union all -- for inserting row
    SELECT '#ROWNUM#' "SNO",
    '<input type="file" name="F17" size="5">'AS "IMAGES", -- for display image
    APEX_ITEM.CHECKBOX(01,NULL) "DELETE",
    null|| apex_item.hidden(02,null) "STUD ID",
    ....... (some code )
    When i click on UPDATE BUTTON  then following PROCESS CODE IS run :
    FOR i IN 1..APEX_APPLICATION.G_F02.COUNT LOOP
    IF APEX_APPLICATION.G_F02(i)IS NOT NULL THEN
    UPDATE STUDENT SET stud_fname=APEX_APPLICATION.G_F04(i),
    stud_addr =APEX_APPLICATION.G_F05(i), ..... ( some field of table)..
    ELSE
    insert into FILE_ATMNT(ATMNT_KEY, ATMNT_NAME, FILE_NAME, MIME_TYPE, ATMNT_SIZE, CNTNT_TYPE, ATMNT_CNTNT, AUDIT_CRT_DATE ) SELECT id, name, filename, mime_type, doc_size,content_type, blob_content, SYSDATE FROM wwv_flow_files WHERE name = APEX_APPLICATION.G_F17(i);
    SELECT id into upload_ref from wwv_flow_files where name =APEX_APPLICATION.G_F17(i);
    ........ ( code for insert command )
    FILE_ATMNT is my attachment table in my workspace which updated through wwv_flow_files. My problem is that when i was click on update button image is not loaded into "wwv_flow_files" table so i didnt get image name bcz of $ name =APEX_APPLICATION.G_F17(i);$  this.  so its show me no data found error.... Pls help me
    Before considering anything else, why bother with all this extra complexity? Why not use the standard form and report pattern?

  • Insert Link and Insert Image broken in Chrome

    The Insert Link and Insert Image buttons have been broken in my Chrome for at least the last couple of days (latest version, 32.0.1700.72 m, Windows 7 64).  
    When you click one of the buttons, the overlay window appears with a title, but it is otherwise black with no contents.  (See screenshot below.)
    The buttons work fine in Firefox.  What hasn't helped: deleting cookies, clearing the browser cache, waiting for several minutes for their content to appear.

    Whtat are we supposed to Claudio? All descend on Adobe with  clubs and try to beat some sense into someone!
    The fact is the customer is no longer the prime concern. Most companies don't give a Rats behind (toned down to prevent censors action) about the customers. It's the almighty dollar. Screw as many customers as they can while they can and line their pockets with all the green backs  as they can while they can. Then if the cusomers leave so be they take their money and run.
    Customer use to have power, they would speak loud and frequently and get things  fixed. And what with people from other countries now owning US companies, That were brought up with different moral compasses. They have no concept of this thing of loyalty to customers. The customer can jump off a cliff and they will simply cheer them on while the do so.
    We have lost, the fight can't be won. It no use. So Pat and others are right.
    I've been trying for 15 years for adobe to fix the issue of having multiple Pdfs created from Office documents because the claim they can't figure out how MS does Page and section breaks. And the issue of Weblinks not being active when converted to PDF's Both on Mac's yet on PC's there is no issue. I quite this year after I received a down right nasty not from Adobe say they didn't have any interest in fixing the bugs and were not about to try. What it amounted was go take a flying leap.
    They have the ability. They have beenblaming Its apple because they don't do such and such , or Microsoft because they don't do so and such. On the Links issue Saying MS doesn't provided the necessary hooks in the mac version of Office. They do you can take a Word document created on a Mac and open a PC and create a PDF and the links will be active. You can Open a Word Document in Apple's pages and all links created in Office document will be there.  The argument has been proven several different ways to be a an outright bald-faced lie. The defect is squarely with the Mac version of Acrobat.
    So Pat and others are right. Just throw in that towel. Adobe support of its customers is now 10 times worse than intuit's which is supposed have the lowest reputation of any software compny that ever existed.

  • I'm using Adobe Acrobat with the hope of editing a url on the graphic...a simple 3-letter change, save, close and send for printing..how do I get in edit mode to delete 3 letters and insert 3 new letters?

    ?I'm using Adobe Acrobat with the hope of editing a url on the graphic...a simple 3-letter change, save, close and send for printing..how do I get in edit mode to delete 3 letters and insert 3 new letters?

    pkg4ibm wrote:
    editing a url on the graphic...
    Not sure what you mean by that: is that URL in an image, or is it actual text?
    If it is in an image, then you need to extract the image, edit it with something like Photoshop, then add it back to the PDF.
    If the URL is actual text, I suggest that you remove the entire URL, then add the corrected link.

  • Insert /delete data from SAP Z table to Oracle table and opposite

    Hi,
    Can u help me write this FM from the SAP side?
    So, I have two tables ZTABLE in SAP and Oracle table ORAC.
    Let's put three columns in each of them, for example
    TEL1
    TEL2
    ADRESS
    NAME
    where TEL field is primary from ZTABLE to ORAC...
    (in FM there shoud be abap code for writing data in ZTABLE after we press some pushbutton made in sap screen painter..)
    for example, when we write new record in ZTABLE
    00
    112233
    Street 4
    Name1
    this data shoud be inserted in Oracle table ORAC.
    when we write new record in Oracle table for example
    01
    445566
    New Street
    Name2
    this data shoud be inserted in ZTABLE.
    Field TEL1 can be only of two values 01 or 02, other combination is not valid...
    I must have all data from Oracle table ORAC in ZTABLE and opposite.
    It should be the same scenario for DELETE...
    And this communication should be online between sap and table in oracle database...
    Can u help me from sap side? and give idea how to configure on oracle side??
    Thanks a lot,
    Nihad

    I dont know if we can directly connect to a oracle database ( wait for the answers from others on this )
    but in XI we have the JDBC adaptor to insert and retrieve data.
    so for the outbound from SAP the flow can be something like this (with XI in landscape):
    1) You have a screen to maintain a new entry / delete an entry
    2) On save , this record gets saved or deleted from the Ztable in SAP
    3)) In the same screen you can call a proxy class-method (generated using SPROXY transaction ) to send the record to XI.
    4) XI to format it and insert into the oracle table
    Mathews

  • Inserting an image to Jframe and save it ,  in SQL database

    Hai guys,
    I just wanna know about the inserting image in to a Jframe (in netBeans) it will be a grate help if you tell me the way to call a image to Jframe through a Button click and save the image in MySQl database.
    Is anyone has a idea about this task, please tell me
    Thanks,

    Image class should work to get the data, then add it to a Canvas object, then you can save the bytes from the Image into an SQL statement through JDBC.
    The implementation details will vary based on which approch and database you select.

  • I try to insert some images on a website but the images are not in the right color mode. I do not know what to do? and also I have 1200 images to insert so I can not change one after one. So I need to set up an action, but I donot know how to do it... Tha

    I try to insert some images on a website but the images are not in the right color mode. I do not know what to do? and also I have 1200 images to insert so I can not change one after one. So I need to set up an action, but I donot know how to do it... Thanks

    What is the problem specifiaclly?
    If the images are intended for web use I would recommend converting them to sRGB which could be done with Edit > Convert to Profile or with File > Save for Web, but as including a Save step in Actions and applying them as Batch can sometimes cause problems I would go with regular converting.
    You could also try Image Processor Pro.
    Scripts Page

  • I have deleted images out an email body and foxfire deleded all inages.nothing will come through with the emails. How can I get my pictures back?

    There was something in the body of my email and I right clicked on it and clicked on delete image. Foxfire opened a white bar across the top of my screen saying that "Foxfire would delete all of aol 's images and before I realized I could click the undo spot it was gone. I want to know how I can undo this Please.>>>>I can't get any pictures through aol my mail. Thanks

    See:
    * http://kb.mozillazine.org/Images_or_animations_do_not_load
    * You can see the permissions for the domain in the current tab in Tools > Page Info > Permissions
    * You can see all exceptions in Tools > Options > Content: Load Images > Exceptions
    * You can check the Tools > Page Info > Media tab for blocked images (scroll through all the images)
    You can use these steps to check if images are blocked:
    * Open the web page that has the images missing in a browser tab.
    * Click the website favicon ([[Site Identity Button]]) on the left end of the location bar.
    * Click the "More Information" button to open the "Page Info" window with the Security tab selected (also accessible via "Tools > Page Info").
    * Go to the <i>Media</i> tab of the "Tools > Page Info" window.
    * Select the first image link and scroll down through the list with the Down arrow key.
    * If an image in the list is grayed and there is a check-mark in the box "<i>Block Images from...</i>" then remove that mark to unblock the images from that domain.

Maybe you are looking for

  • Problem with client_get_file_name

    Hi, v_filename := client_get_file_name(........); :b_test.test := v_filename; Above is the simple code that I use. But my problem is ... sometimes ( I think 1 out of 10 ), when I select the file in the dialogue and press open button, the dialogue clo

  • X-Fi Fatal1ty - Smart Recorder will not work in

    I think the 64-bit drivers for this puppy are still buggy. When I try to record my vinyl albums through Smart Record, Wave Studio or even the basic Windows Sound Recorder, I get screeching noise on playback. Everything appears to record normally, but

  • Reciever comm channel configuration  for ftp

    Hi all I have configured the comm ch in reciever nfs content conversion parameters Name.fieldNames                 FIRSTNAME,LASTNAME,SALARY Name.fieldSeparator         , Name.processConfiguraion    FromConfiguration Name.endSeparator        'nl' sen

  • Error during the installtion of OWB under Vista

    Dear all I have downloaded OWB in my laptop. Now tried to install the OWB and will get the error message like follows: Error in the writing on directory: c:\users\User\AppData\Local\Temp\OraInstall2009-09-01.... Make sure that the directory is writab

  • Preview images disappearing

    HI Everybody, When I download my bank statements in Preview, there are no check images. Even the check images that I used to be able to view in old statements have disappeared!