Attribute ID of the blob has text or image

Hi all

Currently, we have many attributes which actually held some files while others like CKEditor blob associated with so that we can write our own text.

I am currently working at heart API where I'm not sure if my attribute will contain the files or just text CKEditor. Is it possible to find? I need to get this blob attribute value in the case where is the one with CKEditor, which are associated with him.

I do not know the most effective way, but if you read the support using AssetDataManager and have located the AttributeData you want to change, you can do something like this:

BlobObject blob = attributeData.getData();
if(blob.getFilename()!=null && blob.getFilename().endsWith(".txt")) {
    try {
        String fileContents = org.apache.commons.io.IOUtils.toString(blob.getBinaryStream(), Charset.forName("UTF-8"));
        String newFileContents = makeChanges( fileContents );
        blob.setBinaryData( newFileContents.getBytes("UTF-8") );
    } catch(IOException ioe) {
        // handle exception here, in case there is a problem with the blob
    }
}

then update the asset the usual way with AssetDataManager.update (). This is assuming that your installation of Sites (file.encoding) using UTF - 8.

Kind regards

Stephan.

Tags: Fusion Middleware

Similar Questions

  • Is my client using the web browser editor can change the position of text and images, the site was built with muse

    Is my client using the web browser editor can change the position of text and images, the site was built with muse and at first, tell him that he could change the text and images, but he can't change the location of contents of Th.

    Now he wants to paste and copy directly from the web browser Publisher Word and wants to change all of the place itself.

    Does someone have an answer or another solution?

    Philippe

    First of all, to answer your question about moving content. No, that is not supported.

    Then, never advised him to stick to Word what for the web. Word adds a lot of very strange code that can break your page completely. Tell him if he has a Word to add to the site to paste into Notepad or any other text editor, copy and paste to Muse.

  • Why do I get boxes everytime I click something telling me that the program has a bad image?

    When I click on something, I have a little box in the middle of my screen saying that the program has a bad image.

    (e.g. chrome.exe - bad Image will be at the top of the box and it comes with a notice saying:)
    C:\Windows\system32\avgrsstx.dll is not designed to run on Windows or it contains an error. Try to install the program by using the original installation media or contact your system administrator or the provider of software for support)
    Also, every time I turn on my laptop, after & his signature while in I get loads of boxes for loads of programs that got my cell phone.
    Please help me, I did something different, and I've never had this before.
    I don't know what to do and its slowing down the process of fill me my work right down.
    Thank you
    Ellie.

    Hello

    Method 1:

    Try now to the KB article to perform the clean boot:

    How to troubleshoot a problem by performing a clean boot in Windows Vista and Windows 7

    http://support.Microsoft.com/kb/929135

    Warning: After you used the clean boot in order to solve your problem follow step 7 to reset the computer to start as usual.

    Method 2:

    We will analyze the system for infections using the Microsoft Security Scanner which can be downloaded from the link below:

    http://www.Microsoft.com/security/scanner/en-us/default.aspx

  • How to reduce the space between text and Image

    I am trying to wrap text around an irregular shape in InDesign CS4. I used the pen tool to mark the outlines of the image, crop the image, then selected the outline of the pen and pasted the image into the outline. With parameters defined for the TextWrap is in this dialog box, text wrapping seems in good shape on the right side, but he has too much space on the left side.

    textwrap0.png

    If I try to reduce the space even further away, it is only on the right side of the image, not the left:

    textwrap1.png

    It's the same thing for all my irregular images where I try to wrap the text. How can I reduce the white space to the left of the picture?

    You can use direct selection and the pen tool to change the skin path in repositioning of anchor points and guidelines and adding more anchorpoints etc. In this way, you can move the path of the scarf to the inside a little more to allow the best fit of the text.  To lock breaks in a bit more on a line-by-line, take into account settings composer to composer Adobe single-line (Control Panel menu)

    You can also try to allow hyphenation. With the text aligned to the box on the left will always left a little look gappy I think. However allowing hyphenation will get InDesign to cut the breakpoint to the left of the object with the text, as well as at the end of the line wrapping.

    Also if you change the alignment for Justified, you will also get a better result.

    On a related side note, I had usually advice my trainees do not to wrap the text on the left and right sides, when the object with the scarf is placed in the middle of a sentence. It makes reading more difficult phrases.

    Hope this helps,

    CARI

    --

    Twitter.com/carijansen

  • Prevent the conversion of text in images of Captivate

    When I publish my project (Captivate 9) all the text fields with local variables in appear them differently. Do a little research I found that Captivate converts all static text to PNG images and all text dynamic he knows nothing.


    Although the fonts are the same which causes seem them very different and it is obvious to the user.

    Anyway, I can tell captivate to not convert PNG images?

    Also, I realize that I wouldn't have had this problem, if I had used a sensitive project, but it's a little late in the game to convert this project to a reagent more I have no added features or benefits proposed projects of nature reactive.

    Thank you!

    You can't tell him not to do so.

    You can insert a variable in each text in the legend. Make sure that the variable is not set.

  • XML workflow - adjust the width of text for images frame

    Kings of expensive java script,

    I was checking writing scripts for based on the xml workflow. Here, I did face the problem, the images do not set in the width of the text (screenshot attached for your reference) frame.


    @ I needed: all images automatically fit to the width of the text frame and the resizing of the images also.

    Width of the text frame: pt 325,984

    Text frame hight: pt 535,748

    This fair to the script?

    Screen Shot 2016-03-17 at 6.04.15 PM.png

    Thanks in advance

    HTH,

    function main(){
      var doc = app.properties.activeDocument,
      rects, rect, n =0, columnWidth, ratio, rectBounds;
    
      if(!doc) return;
    
      rects = doc.stories.everyItem().rectangles.everyItem().getElements();
    
      n = rects.length;
    
      while ( n-- ) {
      rect = rects[n];
      if ( rect.parent.parentTextFrames.length ) {
      columnWidth = rect.parent.parentTextFrames[0].textFramePreferences.textColumnFixedWidth;
      rectBounds = rect.visibleBounds;
      ratio = columnWidth/(Math.abs(rectBounds[3]-rectBounds[1]));
      rect.resize ( CoordinateSpaces.INNER_COORDINATES, AnchorPoint.TOP_LEFT_ANCHOR, ResizeMethods.MULTIPLYING_CURRENT_DIMENSIONS_BY, [ratio,ratio] );
      }
      }
    }
    
    app.doScript( "main();", u,u, UndoModes.ENTIRE_SCRIPT, "Fit images to column" );
    

    Loïc

    www.ozalto.com

  • Interactive report will not save the BLOB column attributes

    I created several interactive reports with the 4.0 and 4.1 which had columns of type BLOB with no problems and the download link worked fine. After 4.2 update, interactive reports get the following error when you click on the download link:
    Not found
    The requested URL /apex/apex_util.get_blob was not found on this server

    If I open the edit page of the report, the BLOB downloads very well. When I looked at the report in detail the attributes of the BLOB column, I noticed that the BLOB column attributes had not been met. I tried several times to fill in (name of the Table column name, Primary Key, MIMETYPE, etc), but after applying changes and reopen the attributes page for the blob column, the values, that I entered is not saved.
    For completeness, here is the select statement for the report:
    Select "DESC_ATT_ID."
    "BR_ID,"
    "FILENAME."
    "MIME TYPE"
    DBMS_LOB. GetLength ("DESC_ATTACHMENT") 'DESC_ATTACHMENT '.
    of ' #OWNER # '. " ALTEC_BR_DESC_ATT ".
    WHERE BR_ID =: P3_BR_ID

    Also, here is the value for the number/Date of the BLOB column format:
    DOWNLOAD: ALTEC_BR_DESC_ATT:DESC_ATTACHMENT:DESC_ATT_ID

    Can someone tell me please in the right direction to get the link to the interactive report work correctly?
    Thank you very much
    Jerry

    Hello
    How about you, you do not format BLOB column, do you it manually like this example here:

    Apex. Oracle.com
    workspace: somefeto
    user: test
    PWD: test
    Application 63066

    in the same workspace, there is Sample File Upload and Download (App ID 10540), and it works very well...

    If not, Pls, reproduce the problem on apex.oracle.com

    Best regards
    Fateh
    ------
    If you believe that my answer is correct or helpful to you pls, then mark the reply as useful or correct

  • Fill the text with Image

    Hello

    I'm using Photoshop CS4

    I am filling a text with an image

    I go to the beach of Select / colors and select ok

    But the error message come saying - WARNING: no pixels were selected?

    What I want to do is just select the text I typed?

    Can someone help me out here?

    Thank you

    Phillip

    Type the text in large bold letters.

    Open the image file and drag it to the text file

    Hold the Alt key and click in the layers panel to the border between the layers of text and image.

    Bingo!

    As you can see that the image can be moved around with the tool moving until it looks good.

  • Hi, while writing an email online using Firefox 3.6.3, I was using one of the "CTRL + left arrow or right" to move the cursor on the text. I must have pressed some other key because the screen has become huge - and I can't scroll vertically or horizont

    Hi, while writing an email online using Firefox 3.6.3, I was using one of the "CTRL + left arrow or right" to move the cursor on the text. I must have pressed some other key because the screen has become huge - and I can't scroll vertically or horizontally, which makes the pages of Mail of Hotmail impossible. I have connected since using the Explorer MSFT and it works very well. This problem occurs only on the page of Mail of Hotmail Live not on the home page or other.
    Could you please let me know if there is a problem with Firefox, or if you have any advice on how to restore the appearance of Hotmail in Firefox?

    This has happened

    Just once or twice

    == I'm compiling an email in Hotmail Live

    See this:
    https://support.Mozilla.com/en-us/KB/page+zoom

  • Prefs in user.js for the Mozilla rich text editing has stopped working

    Prefs in user.js for the Mozilla rich text editing has stopped working. He worked, then stopped. you had to do system restore. user.js file replaced, does not work

    This has happened

    Don't know how many times

    solved with this

    https://addons.Mozilla.org/en-us/Firefox/addon/852/

  • A message from windows live saying the acct has been hi-jacked by a hacker and they wanted our mobile phone # send a text msg to solve the problem.

    problem of pirate?

    We received a message from windows live saying the acct has been hi-jacked by a hacker and they wanted our mobile phone # send a text msg to solve the problem.  We have not so much text msging and then they want all sorts of personal information (name, DOB, address, e-mail addresses, etc.) and we do not want to do that.  is this a legitimate windows msg and is it possible that I can call someone from microsoft was finishing speaking?  Thank you.

    Hello

    That sounds like a SCAM don't respond so not! Unless you have launched the contact of its likely someone
    I'm trying in fact to steal your account and your identity. If your account has been compromised, see the
    below.

    Unfortunately the answers is a site of support of peers supported and has no real influence
    with Windows Live.

    Check with Windows Live Support and Forums

    Windows Live Mail Forums
    http://www.windowslivehelp.com/forums.aspx?ProductID=15

    Windows Live Solutions
    http://www.windowslivehelp.com/solutions.aspx?ProductID=15

    Windows Live Solution Center
    http://www.windowslivehelp.com/

    Compromised account - unauthorized account access
    http://windowslivehelp.com/solution.aspx?SolutionID=6ea0c7b3-1473-4176-b03f-145b951dcb41

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

  • File formats supported for attributes of the BLOB

    Hi all

    I have an attribute of type BLOB. Can any body tell me what all file formats are supported for attribute of type blob in the sites.

    It is that I am trying to download a format .map file. I'm able to download but when I try to fetch the URL of the BLOB, it gives the error of content server. Looks like the blob server does not support the .map files. My logic works well for other formats such as pdf, jpeg, css, js, etc etc.

    Is there any file where configure us formats all we will support in blob.

    Hello

    Maybe the problem is that you do not have this extension in the table of MIME type and you must add it.

    It will be useful,

    Gerardo

  • hp officejet 4620 series program will not work. the code has been installed in a text file

    When I click the icon code appears in 2 screens in the form of text. I am running windows 7. and installed from the installation cd and downloaded version.

    Hello world

    Root cause:

    A default program to open this file has been correctly defined.

    Download and run the file below. Let me know what you find?

    Update of file association

    HP Printer Wizard opens with an error in Script or in Notepad

  • Roll on the text occasionally comment on erratic results, for example, first highlighted word and then no other product even if the mouse has not been published.  How can I fix it?

    I have Acrobat Pro DC and Windows 10.  When you try to make editing comments, I find almost impossible to get the words marked (by rolling on it with the mouse button).  The blue highlight climbs around the word to Word or closed unexpectedly after rolling on a single word, even if the mouse button was released.

    In addition, now that the strike and replacement tool has been eliminated, you are supposed to perform the same operation on the text to replace and, once the text highlighted blue, simply start typing the new text.  It works not.  After finally getting the right text marked, I start typing, and nothing happens.  I might have to select a tool (for example, strike-out), use and remove the strike-out, before the operation crossed out - replace works again.

    I have used earlier versions of Acrobat Pro (on Vista) without such problems.

    The problem I described with text selection was not with Acrobat, but rather with a failing wireless mouse.  Replacing the mouse seems to have resolved.  See erratic mouse, by selecting the problem of text - Logitech Forums

  • How can I prevent the text fields and drop downs changed after the form has been signed using a digital certificate? Thank you.

    Hi all

    How can I prevent the text fields and drop downs changed after the form has been signed using a digital certificate? Thank you.

    There is also a checkbox on the dialog box 'Sign' to lock document after signing.

Maybe you are looking for