ACM12c download Document API adds characters to documentName

Hello

I managed to create a service to upload documents to the company ACM. This allows me to download attachments and body to ACM.

It works roughly, using the following code:

        ICaseStreamService caseStreamService = getCaseStreamService();
        caseStreamService.uploadDocument(context, caseIdentifier, docName, mimeType, inputStream, comments,
                                         permissionTag);

However, it turns out that when I give in a docName as string like ' 2015 - 01 - 06 - 14: 27:16 - Mail: FW: Iets voor case [168,1] message simpeler .html ' somewhere in the API, a character is added to the front and, sometimes, at the end of the name of the document: "J2015-01-06-14: 27:16 - Mail: FW: Iets simpeler message voor case [168,1] .html ' (note the 'J' added to the front)." Whenever it is a different character.

Well I have download the body of the message with the type of content/Mime "text/html", when I try to download from the case of the documents, it is treated as a TXT file. When it is saved, a .txt extension added to it, it should be .html.

Someone at - it ideas?

Kind regards
Martian

It turns out that when you use a long document name, especially with the spaces and special characters, it can happen that the documentname is prefixed.

If you use just the name of a relatively small document, without spaces these characters does not.

Also, I found that I have the prefix my document names with a date-timestamp, with (the shame) of colon ("": ") at the time... I removed the hyphens in date and the settlers of the time.

I used to use the e-mail subject of the e-mail entering the name of the document. But that may contain special characters as well. Now, I use a documentname generic to the emailbodies and put the object in the comment field.

Now it's working.

Tags: Fusion Middleware

Similar Questions

  • How can I download document while index of area recreation

    CREATE TABLE my_docs)
    ID NUMBER (10) NOT NULL,
    name VARCHAR2 (200) NOT NULL,
    doc BLOB NOT NULL
    );

    ALTER TABLE my_docs ADD)
    CONSTRAINT my_docs_pk PRIMARY KEY (id)
    );

    CREATE SEQUENCE my_docs_seq;

    DIRECTORY to CREATE or REPLACE documents AS "C:\work"

    CREATE OR REPLACE PROCEDURE load_file_to_my_docs (p_file_name IN my_docs.name%TYPE) AS
    v_bfile BFILE.
    v_blob BLOB;
    BEGIN
    INSERT INTO my_docs (id, name, doc)
    VALUES (my_docs_seq. NEXTVAL, p_file_name, empty_blob())
    RETURN doc INTO v_blob;

    v_bfile: = BFILENAME ('DOCUMENTS', p_file_name);
    Dbms_Lob.FileOpen (v_bfile, Dbms_Lob.File_Readonly);
    Dbms_Lob.LoadFromFile (v_blob, v_bfile, Dbms_Lob.Getlength (v_bfile));
    Dbms_Lob.FileClose (v_bfile);

    COMMIT;
    END;
    /

    EXEC load_file_to_my_docs ('any_document_of_PDF_DOC_DOCX');



    -Download any DOCUMENT size 10 m approx. 4-5 documents.


    CREATE INDEX my_docs_doc_idx ON my_docs (doc) INDEXTYPE IS CTXSYS. CONTEXT PARAMETERS ("sync (on commit)");

    DROP INDEX my_docs_doc_idx;

    now to re-create the indexes on the same column

    CREATE INDEX my_docs_doc_idx ON my_docs (doc) INDEXTYPE IS CTXSYS. CONTEXT PARAMETERS ("sync (on commit)");


    - at the same time in another session try to download any document in the table above
    you will face ORA-29861: area index is shown LOADING/FAILURE/UNUSABLE

    How can I download document while index of area recreation

    You can use:

    Your_index ALTER INDEX REBUILD PARAMETERS online ("REPLACE LEXER your_lexer");

  • How can I add characters often used to my home keyboard? iPhone 5 - 9.3

    How can I add characters often used to my home keyboard? iPhone 5 - 9.3

    You cannot change the built in keyboards. There may be some third-party keyboards that will allow that. You should look for the App Store.

    What kind of characters are you talking about?

  • Download documents

    I want to save the downloaded documents. I chose the option to open them automatically and do not ask me again. I want to change this preference.

    Uninstall and reinstall firefox

  • Microsoft word has automatically opens my downloaded document

    Hello

    I had to install Microsoft Office 2013 for the Excel program, but the Word program opens whenever I download a downloaded document.

    This makes me cra - cra. All the advice to avoid this would be great.

    I tried to go to the preferences and general users to preferences in Word.

    Thank you!

    My bet would be that it is a matter of preference MSOffice. Try to go on the Microsoft Office user forum and ask your question.

  • How do I download documents from sandisk to PC

    original title: NEED HELP

    HOW DO I DOWNLOAD DOCUMENTS FROM SANDISK FOR PC

    I believe he is referring to a USB key.

    theoWF, just plug in. Windows will assign a drive letter to the USB key. Open Desktop and search. Then simply copy and paste the files you want anywhere you want on the computer.

  • attempt to send e-mail 1. They asked to add characters to avoid spam, do not understand what characters and where are they going? Thank you

    Hi, try to send a 1 direct e-mail. they ask to add characters before sending to avoid threats, but do not understand what characters and where are they going? Thank you and God bless you

    Hello

    I'm sorry, but we cannot help with hotmail problems in these forums in response to vista

    Please repost your question in hotmail in the hotmail link below forums

    http://windowslivehelp.com/product.aspx?ProductID=1

    Forums
  • Envy 110 analyzes a document and add to a separate scanning file? Add info. in a previous scan file

    Can scan a document and add it to a separate scanning file?  I need to update a file and add information.

    Thank you

    Love my 110 desire!

    Hello unruly.

    Welcome to the Forums of HP Support!

    Regarding your question, you are able to add a new document scanned to an already existing document, the answer is no. In any case, not with the HP scanning software you can be able to install additional software to achieve what you are looking for. I did a Google search and found this Forum: adding scanned Pages to existing PDF files on Adobe's Web site.

    I hope this has helped.

    Thank you

  • Cannot open the downloaded documents

    Running Windows 7 Home Premium.  When I try to open the downloaded documents I get the error message "Microsoft Wordstarter 2010 cannot be opened. Try again or repair the product in the Panel.  Try gives the same result again. Could not find anything in the Panel that appears to appy.

    Save the file to your hard drive, open Word Starter 2010, click file > open > navigate where the file is saved on your hard drive.

    See also:

    "Cannot be opened" error when you start a program Office Starter 2010.

  • Download Blackberry API

    Hello world

    I would like code when I'm offline (on a plan or somewhere without internet access), but I can't find the Blackberry API to download. Someone knows a site where I can download Blackberry API 5, 6 or 7?

    Thanks in advance

    Lucas

    Downlode RIM JDE any version

    http://us.BlackBerry.com/developers/javaappdev/javadevenv.jsp

    and install... .you should find a HTML link, which contains the associated OS API.

  • Download pots API and source

    Is there a place to download the API and source of pots for the lib of RIM? I find the API behind online a lot, and it would be good to have a source JAR to work in my IDE.

    The BlackBerry development environment is not a platform open source so RIM does not publish the source for what in the net_rim_api.jar.  They include that jar in the jde/lib directory, so you can compile against this in your IDE.  They also include the javadocs in the jde under docs/api directory download (so late on, you mean slow access on the net).

  • How to make a downloaded document searchable for the search engines?

    How can I give a name, description, tags, to a downloaded document?

    For example, I have this link below, how can I give a description to it as if it were a web page?

    http://www.TU.biz/assets/Hi-torque-low-speed-hydraulic-motors.PDF

    I would like to do something more, as in this example from google searh... See the 4th line results... There is a pdf document with a complete description of the search engines...

    Google

    Hello Elindo586,

    Please see the links below. Seems like you need to achieve in the PDF file.

    How to optimize PDF Documents for search - YouMoz - Moz

    8 tips to make your PDF Page SEO - Search Engine Journal

    s https://acrobatusers.com/tutorials/make-your-PDFs-work-well-Google-and-other-search-engine

    Kind regards

    Vivek

  • I updated Adobe and now my download documents but do not open automatically?

    I updated Adobe and now my download documents but do not open automatically?  I normally use Firefox so now I have to go to the download arrow and click it and then click the document just downloaded.  Why not just open?

    Hello beckyb52363711,

    You might need navigate to the link for the same mentioned below:

    Acrobat help. Display PDF in browser. DC to Acrobat, Acrobat Reader DC

    Let me know how it goes.

    Kind regards

    Ana Maria

  • Download Document of Intranet Portal with adf 11g connection credentials

    Hello


    JDev Version: 11.1.2.2.0

    I am trying to download a document of intranet portal that uses my IDs of NT.

    When I try to download the link from the browser, it works, but try even when download of java code with ADF Backing Bean his fault download saying 401: unauthorized Exception.

    Question here is how to move the Windows NT credentials to my grain of document download or is there a way to say "use my login credentials of the system"?


    I copy the source code here for your reference.

    /**
    * Download the file stored in the database in the URL format
    @param facesContext
    @param outputStream
    */
    ' Public Sub downloadDocument (FacesContext facesContext, OutputStream, outputStream)
    {
    OperationBinding op = (OperationBinding) findOperation ("getDocumentLocation");
    Map opParamsMap = op.getParamsMap ();
    opParamsMap.put ("docRowKey", docValueID.getValue ());
    String result = (String) op.execute ();.
    System.out.println ("location of the document" + result);
    FileOperations.getInstance (f:System.NET.WebRequestMethods.FTP.DownloadFile (result));
    }


    synchronized Public Shared Sub downloadFile (String strURL)
    {
    DocumentURL URL;
    UConn URLConnection = null;

    try {}
    documentURL = new URL (strURL);
    uConn = documentURL.openConnection ();


    Authenticator.setDefault (new Authenticator() {}
    protected PasswordAuthentication getPasswordAuthentication() {}
    return new PasswordAuthentication ("xxxx", "xxxxx".toCharArray ());
    // }
    // });

    int byteRead;
    int byteWritten = - 1;

    InputStream is = uConn.getInputStream ();
    OutputStream outStream = null;
    Byte [] buf = new byte [153600];
    While ((byteRead = is.read (buf))! = - 1) {}
    outStream.write (buf, 0, byteRead);
    byteWritten += byteRead;
    }
    System.out.println ("uploaded successfully.");
    }
    catch (FileNotFoundException fnfe)
    {
    System.out.println ("Exception occurred while downloading file:" + fnfe.getMessage ());
    }
    catch (MalformedURLException e)
    {
    e.printStackTrace ();
    }
    catch (IOException e)
    {
    e.printStackTrace ();
    }
    Finally
    {

    }
    }


    Please note that I am the download document based on a URL (intranet portal).

    Happy to provide any other information.

    Appreciate the quick response

    Thank you inadvance

    Network and application user id user ID but can match... the password is not... Since you say that the URL itself works very well when you give him on browser, try opening the URL using goLink.
    Guess it would work if the user of the network has access to the portal.

    Check out the link below to open the URL using goLink.

    Open a dynamic URL to link to the Table column

    Good luck!

    Edited by: 119413 January 10, 2013 14:35

  • Download the API

    Previously, it was possible to download the API as a zip file. Therefore, it is more possible to do?

    I can easily find the following links:

    http://www.Oracle.com/technetwork/Java/API-141528.html
    http://www.Oracle.com/technetwork/Java/JavaSE/documentation/API-JSP-136079.html
    http://download.Oracle.com/javase/6/docs/API/

    But can I download the whole API in a single file?

    http://www.Oracle.com/technetwork/Java/javase/downloads/index.html#docs

    courtesy of another forum, the first link returned for keywords of google "Download api java.

Maybe you are looking for

  • How to find and change settings when Firefox Sync synchronize?

    As the XMarks bookmark Synchronizer deteriorated to the point where it is unusable, I transfer my Firefox Sync synchronization tasks. It seems to work very well, but I would like to know the settings (and if possible, be able to change) that determin

  • HP Pavilion 17-e071sr (F2U30EA): add RAM 8 GB laptop HP Pavilion 17-e071sr (F2U30EA)

    Hello. I have a laptop - HP Pavilion 17-e071sr (F2U30EA). It has 4 GB of RAM on Board (SO DIMM DDR3L Samsung M471B5173QH0-YK0). It has a free location for additional stick of RAM installation. Is it possible to install the additional stick of RAM wit

  • Can I have fallen for a scam of phone

    Separated from this thread. I think someone made a scam and use of microsoft windows as there is a way to enter your House.  I need to know if it's a scam. I got a cal from windows telling me the last 2 weeks my computer has een get a virus and will

  • 0xc0000034 after installing SP2

    Once I installed Sp2 my pc restarted. CHKDSK ran, and then he stopped on stage 3 with an error! number! name of file. I turned off the pc and then he turned his back and got BSOD. Then, I put my vista disk in and started the repair. The pc rebooted,

  • U2715H - 2560 x 1440 over HDMI

    Does the U2715H support 2560 x 1440 hz resolution over HDMI @60? I wonder if this monitor locks the HDMI 1080 resolution. I couldn't find a conclusive answer in the documentation.