Download attachment binary via integration API?

I've been using the CMS integration API to do everything I've needed to do. But I cannot figure out how to download the binary of an attachment. I can figure out how to get all the attachment info associated with a CMS document, but I cannot figure out how to download the binary of the attachment itself. Is this possible?
I'm currently integration with CMS version 13.
Thank you very much,
Billy McCafferty

Hello Billy,
I believe that the API can only be used to add references to files that already exist in a specific location and the API cannot be used to add files to or download files from the file server.
Hope this helps.

Similar Messages

  • Downloading a binary via IE and getting the "corrupt or invalid" message

    Hi,
    I'm trying to resolve the issue when downloading a binary via IE and getting the "corrupt or invalid" message.
    I've tried using the /tr switch instead of /t, however I still get the same problem.
    I'm using the signtool.exe from SDK 8.1 and IE version 10.0.9200.17028
    I've tried using the following time stamp server but it did not responded:
    http://timestamp.verisign.com/scripts/timstamp.dll
    so I've used this one instead:
    http://timestamp.globalsign.com/scripts/timstamp.dll
    but even though I still get the "corrupt or invalid"  message.
    Thanks

    Hi,
    see
    http://blogs.msdn.com/b/ieinternals/archive/2014/09/04/personalizing-installers-using-unauthenticated-data-inside-authenticode-signed-binaries.aspx
    Questions regarding Internet Explorer 8, 9 and 10 and Internet Explorer 11 for the IT Pro Audience. Topics covered are: Installation, Deployment, Configuration, Security, Group Policy, Management questions. If you are a consumer looking for answers or to
    raise a question, it's highly recommended you head on over to http://answers.microsoft.com
    does the problem persist If you upgrade to IE11/win8.1?
    Rob^_^

  • I am getting "Fatal Error: null" when connection to P6v8.3.2 DB using P6 Integration API

    I am getting "Fatal Error: null" when connection to P6v8.3.2 DB using P6 Integration API.
    I can connect via P6 client using admin account but cannot connect using P6 API. If I provide invalid credentials it says that the credentials are incorrect. When correct credentials are provided, it comes up with the above error.
    Stacktrace is atteched.
    Please assist.
    Thanks
    Sunil

    Hi Sunil,
    In the absence of sample code it is difficult to identify the cause. If that is not possible, you can try logging SR with Oracle support.
    Regards,
    Sachin Gupta

  • PI 7.1 Email Attachment binary file

    Hi,
    I am trying to attach a binary (encrypted) file to a regular mapped email (receiver adapter) before sending it.
    It is similiar to attach pdf-files at the end of a mapping process.
    Is there no way to attach binary files other than writing an adapter module?
    Is there no generic "Attach File" module in PI 7.11?
    I tried ASMA with XSLT, but the problem is, that the file is binary and the sender adapter would not read it without xml-format.
    Any good idea?
    thanks
    hs

    Hi Holger,
    Just a suggestion:
    1. Read the binary file using file adapter (in binary mode)
    2. use a mail package and put the read content into the Content node of it. You can use this java mapping for it
    import java.io.BufferedReader;
    import java.io.InputStream;
    import java.io.InputStreamReader;
    import java.io.Reader;
    import com.sap.aii.mapping.api.AbstractTransformation;
    import  com.sap.aii.mapping.api.DynamicConfiguration;
    import com.sap.aii.mapping.api.DynamicConfigurationKey;
    import com.sap.aii.mapping.api.StreamTransformationException;
    import com.sap.aii.mapping.api.TransformationInput;
    import com.sap.aii.mapping.api.TransformationOutput;
    import com.sap.aii.mapping.api.InputHeader;
    public class JavaMapping extends AbstractTransformation {
         public void transform(TransformationInput arg0, TransformationOutput arg1) throws StreamTransformationException {
         getTrace().addInfo("JAVA Mapping Called");
         //Input payload is obtained by using arg0.getInputPayload().getInputStream()
         String inData = convertStreamToString(arg0.getInputPayload().getInputStream());
         String outData = inData
         try
         //8. The JAVA mapping output payload is returned using the TransformationOutput class
         // arg1.getOutputPayload().getOutputStream()
              arg1.getOutputPayload().getOutputStream().write(outData.getBytes("UTF-8"));
         catch(Exception exception1) { }
         public String convertStreamToString(InputStream in){
         StringBuffer sb = new StringBuffer();
         try
         InputStreamReader isr = new InputStreamReader(in);
         Reader reader =
         new BufferedReader(isr);
         int ch;
         while((ch = in.read()) > -1) {
              sb.append((char)ch);}
              reader.close();
         catch(Exception exception) { }
         return sb.toString();
    Then provide the filename dynamically into the ContentType of the mail package.
    I guess this should work.
    Regards
    Suraj

  • Filed messages issue, could not download attachment

    My Z10 seems to be having major issues downloading attachment from my Exchange account when there's a rule (client-side rule) that files this away.  My Z10 is set to show filed messages and to sync this folder so it does come through, but I can't download the attachments (txt files).
    If I forward the email to me to bypass the rule (via WebApp), I have no issues downloading the attachment.
    In general, it seems as though I'm getting iffy support for filed messages (Gmail, via IMAP, doesn't alert on emails that bypass Inbox and are filed, but that folder/label is set to sync too).
    Anyone have any ideas or am I just running into some bugs?

    Hey jj619,
    Welcome to the BlackBerry Support Community Forums.
    Thanks for the question.
    To better investigate why the attachment is not downloading, we will need to gather some logs.  Please contact your network service provider and ask to be transferred to BlackBerry.
    Thanks for your patience.
    -ViciousFerret
    Come follow your BlackBerry Technical Team on Twitter! @BlackBerryHelp
    Be sure to click Like! for those who have helped you.
    Click  Accept as Solution for posts that have solved your issue(s)!

  • P6 R8.2 Integration API

    Hi,
    I'm trying to use integration API on P6 R8.2, I have installed P6 R8.2 with Oracle XE, when I'm trying to use integration API I just get "Unable to get database instances". Do I have to install weblogic? or Do I miss a configuration?

    Maybe a bit late, but for others running into this problem, this is in the Oracle Knowledge base:
    The P6 R8.1 and R8.2 Integration APIs are not designed to work with P6 R8.1 and R8.2 Professional databases, but they can be patched to do so by following these instructions:
    Install P6 Professional R8.1 or R8.2
    Download, extract and install the R8.1 or R8.2 Integration API but do not run the database configuration wizard
    Copy the integration jar file from the P6 Professional installed folder to the API installed folder.  For example, copy intgserver.jar from “C:\Program Files\Oracle\Primavera P6\P6 Professional\Pro\Java\lib” to: “C:\P6IntegrationAPI_1\lib”
    Run database configuration as Administrator by navigating to Start -> Programs -> Oracle – Primavera P6 -> Primavera P6 API -> Database Configuration
    (Optional) Run API Demo by navigating to Start -> Programs -> Oracle – Primavera P6 -> Primavera P6 API -> Demo -> General Demo

  • Add limits to step settings via TestStand API from LabVIEW

    Dear LabVIEW and TestStand Community!
    I'm trying to add FileGlobal Variables as limits to TestStand step NumericLimit programmatically, via LabVIEW, via TS API. I attach screenshot of the code, which I use (part of it - the module, which only sets values to low and high limit of the step), and also I attach, what I manage to get.
    In TS, when I open sequence file, after running of the code, I can see in the description line of the test, that it accepted limits, which I set from LV - you can see it from the screenshot, it is marked with yellow. But in the Tab "Limits", there are still default numeric values, not FileGlobal Variables.
    Could anyone explain, what doest it mean, and how to set up them correctly?
    Thanks a lot in advance!
    Solved!
    Go to Solution.
    Attachments:
    Limits.PNG ‏33 KB
    Add Limits.PNG ‏15 KB

    It's kind of sequence generator what I'm doing now...
    Thank you very much for fast reply, but when I setup "UsexxxExpr" to true, it doesn't change the situation... Could you, please, check my attachment? Maybe, some mistake in syntax?
    Attachments:
    Add Limits.PNG ‏23 KB

  • How to generate the User-Input XML Body for executing workflows via REST APIs: The Solution

    I see that executing a workflow via REST APIs requires lot of work to be done just to prepare the right User-input XML body. Any mistake and you have some major debugging to do. Larger the number of User-Inputs, the bigger is the problem.Life is so much easier at the WFA GUI with Display names and tooltip help for User Inputs which are very easy for reading and providing the right values. I don't have any such privileges when manually preparing the User-Input XML body.It’s been asked numerous times how to provide User-Input values for type table, or Query (Multi-Select) etc. These are complex User-Input types and has lots of scope for user mistakes.I can have User-input dependency at WFA GUI which allows me to make the right selection, but while preparing my XML body I need to take care of it myself.An operator is allowed to execute workflows, but the same Display names which help him make the right user-inputs, makes it impossible for him to prepare the user-input body xml. Display names can't be used in in XML body and he can't know the exact parameter names by looking at the Display names. So he need to always contact the Admins/Architects for this. And Architects/Admins can't be expected to keep providing User-Input XML body to operators every operator. How about if I could enter all the User-Input values in my workflow execution at WFA GUI, I can do a preview which passed to my satisfaction and then I can magically get the XML body for it which I can use to execute my workflow from REST APIs from any client. It could be so very much easy for me than building my User-Input XML body manually. This is exactly what I'm going to give you right now. You open the WFA in browser, Go to your workflow, Start execution, you input values from GUI reading carefully the display names, preview it to your satisfaction and then get the XML body. Assume your workflow is called “Workflow to Print a given Message”. It’s a simple workflow with only 1 user-input Displayed as "Message to Print" Prerequisites:  The following are the one-time prerequisites. You need PowerShell 3.0 on your WFA server.Import the attached Generate_Workflow_User_Input_Body_in_XML.dar in your WFA. It’s our magical command called "Generate Workflow User Input Body in XML"Add credentials of a WFA Admin/Architect in you WFA itself with Name/IP: localhostMatch: ExactType: OtherName/IP: localhostUsername: <WFA Admin/Architect Username>Password: <User Password>   Steps: Suppose you have a workflow called "Workflow to Print a given Message". You want to execute it from REST apis and need to prepare the user input XML body.  Select this workflow and clone it. The workflow clone is the exact copy of your original workflow word by word, input-by-input. It will open in Edit mode with name "Workflow to Print a given Message - copy".Add the command "Generate Workflow User Input Body in XML" at the beginning of your workflow. This is a must. This command need to be the first command in your cloned workflow.This command requires no input. So for its Parameters just press okay and save the workflow.You are done.Now Execute the clone workflow. You'll see all the user-inputs available to you. Make your choices as you wish. Preview it to confirm that planning is passed and u have no errors.Execute it now.You'll see that the our magical command "Generate Workflow User Input Body in XML" has failed in our clone workflow execution. Don't worry, its fate was decided to be so. But it didn't fail before giving me what I really wanted. i.e. my XML body for my real workflow. It displayed it in the GUI as well as saved it in your WFA server @ C:\temp\<workflow_name_dd_MM_yyyy_hh_mm_ss_.xmlIt also deleted all the reservations of this particular failed job. So NO major residue left to be cleaned.To summarize: Clone Your workflow and Add the command "Generate Workflow User Input Body in XML" as your first command.    Start Execution, provide your User-inputs and preview it. Be satisfied and Press Okay.   Now Execute it.  After a few scconds this cloned workflow will fail with Error "All done. The Workflow will fail now."     See the command execution logs for this command. You'll see the User-Input XML body. It has also saved the XML file at C:\temp in your WFA server.   Have fun. sinhaa  

    Providing a new version 1.1.0 of the command "WFA Schedular" Changes made: Added conditional String Representation based on the Scheduling parameter provided. Provided check for the right number of parameters passed into the command.Added a new parameter "Expiry Date" to automatically stop the recurring execution upon expiry.Check for Posh3.0 version in code.Have Fun!! sinhaa Below example for:Schedule a workflow for recurring execution every alternate day i.e. once in 2 days at 10:30 PM starting 06-Jul-2015 (Today's date is 02-Jul-2015) . The recurring workflow execution  should expire on 31-Dec-2015 and stop.  

  • Primavera Integration API and retrieving fields

    Hello,
    I am trying out Integration API with Primavera P6, Release 7. So far it looks straight forward and I am able to retrieve most of the field values from project object and activity object but I am having hard time figuring out how to retrieve the following two that I can see in Primavera UI. I do not see any straight forward method on either project or activity to get these.
    I would appreciate, any help from experts here. Please see attached screen shot for reference.
    1. Global Responsibility
    2. Original Duration

    Original Duration is Planned Duration.
    Note:  The total working time from the activity planned start date to the planned finish date. The planned working time is computed using the activity's calendar. This field is named OriginalDuration in Primavera's Engineering & Construction and Maintenance & Turnaround solutions.
    Global Responsibility looks like an Activity Code.
    V/r,
    Gene

  • I'm downloading adobe software via my dad's account and when it's done loading, it has a message where it says it sent a verification email to my email address, but when I check it shows that it hasn't been set.  I keep clicking the resend email and it cl

    I'm downloading adobe software via my dad's account and when it's done loading, it has a message where it says it sent a verification email to my email address, but when I check it shows that it hasn't been set.  I keep clicking the resend email and it claims it does but it still hasn't sent the email to my address.  How do I fix this?

    It is probabl,y sending the email to your Dad's email address if you are using his account.

  • Is there a way I can 'select all' for downloading purchase files via family sharing instead of selecting each file or folder one at a time?

    Is there a way I can 'select all' for downloading purchase files via family sharing instead of selecting each file or folder one at a time?

    or home sharing

  • Corrupt Credit Note created via DI API

    Hello,
    when i try to create a credit note via di api i get the error message "one of the base documents has been closed", even if the source document is not closed. But this is not the main problem. After this i have a corrupt credit memo in my system, that means a credit memo with out any detail lines. The error occurs only on one customer systems, on a lot of other systems the creation of credit notes works fine. Had anybody the same effect or clue what causes this problem.
    Regards

    Hello we found the problem, i can reproduce it on a belgium database.
    I want you to inform about a critical error in the SBO_SP_TransactionNotification.
    If you check the line data of a document and send an error for this data the front end works fine. But if you use the DI-API the header data of document will be saved and the lines will be not saved.
    if @object_type in ('14','19') and @transaction_type = 'A'
    begin
    declare @corrCRD as varchar(8)
    if @object_type = '14'
    set @corrCRD = (select distinct(correction) from ovtg where code in (select vatgroup from RIN1 where docentry = @list_of_cols_val_tab_del) and correction = 'N')
    else if @object_type = '19'
    set @corrCRD = (select distinct(correction) from ovtg where code in (select vatgroup from RPC1 where docentry = @list_of_cols_val_tab_del) and correction = 'N')
    if @corrCRD = 'N'
    begin
    set @error = 1
    set @error_message = 'You have entered a regular VAT Code on the document, this is not allowed'
    end
    end

  • PO from SO via DI API:Base document card and target document card do not ..

    HI All,
    I am trying to create Purchase Order from Sales Order. This is possible by GUI (on Sales Order on logistics tabs Click On Purcase Orders CheckBox.
    I got the error message: -5002-Base document card and target document card do not match.
    The message itself can be understandable, because the Customer and Supplier has a different CardCode.
    I am sure I am using a correct code
    oPo.Lines.BaseType = BoObjectTypes.oOrders
    oPo.Lines.BaseEntry = sDocEntry
    oPo.Lines.BaseLine = iLineNum
    Where oPo is a Purchase Order document.
    sDocEntry is a Sales Order docentry and iLineNum is a Line number of Sales Order
    For other A/R to A/R and A/P to A/P documents are working fine.
    Has anybody found this error or has anybody created application like this?
    I am using sbo2007PL46
    Regards,
    J.

    Hi guys,
    this is still on the suggestion page:
    Link existing Purchase Orders to (Sales) Orders via DI API : View Idea
    I tryed with 9.1 PL 4 and it didn't work.

  • Problem downloading a file via http

    Hi
    I'm just getting started with WLS (sp5) and am having a problem downloading
    a file via http. The document is stored in the main html docs directory and
    whenever I link to it or try to download it directly (eg:
    http://<host>:<port>/myfile.doc) I get the following error in a message box:
    Your current security settings do not allow this file to be downloaded.
    Can anyone point me in the right direction as to where I grant permissions
    to do this - I've tried using the weblogic.security.URLAclFile and adding
    the directory as a weblogic.io.fileSystem (a desperation move, I know).
    Thanks in advance,
    Peter Villiers

    PLEASE IGNORE THIS POST
    The problem was caused by someone (me though I honestly don't remember doing
    it), setting the content security level to high in my web browser which
    stopped this type of download.
    Peter

  • Creating a Good Receipt PO via DI API No matching records found (ODBC -2028)

    Hi,
    I trying to create a Good Receipt PO via DI API.  It is working when the user I used to log in to SAP via the DI API is a Professional User but when I changed it to a Limited Logistics User, I'm receiving the No matching records found (ODBC -2028). I have already added the SDK Tools license to that user but still I'm receiving that error.
    So is it that the DI API will only work with a Professional User license or I can still use a Limited Logistics User?

    HI J S L,
    I get same error when I use different user that I just now add the SDK Tools without restarting the database server.  But previous user that I added SDK Tools before restart, no error.
    Today
    User 1 - add SDK Tools, no restart, error
    Last Wednesday
    User 2 - add SDK Tools, no restart, error
    Today - database server restarted this morning
    User 2 - no more error
    Both User 1 and 2 are Limited Logistics User.
    Best regards,
    Dennis

Maybe you are looking for

  • HOW COME QT PRO DOESN'T SEE MY CANON XL2 ANYMORE?

    repeating my question a little louder.

  • About  inserting data

    Hi to all, I am trying to enter data into a table thru SE11. The process as follows SE11 --> "utilities" menu --> "table contents" --> Create entries Then my SAP is prompting a error message "The system settings do not allow  any changes " . And i do

  • Standard queries SD/MM FI/CO in xls

    A customer asks me to show all the standard business content queries in the SD /MM and FI/CO area . In the service marketplace and in the help sap i have found only the queries with technical details of the different infobjects/ KF /structures etc. I

  • Missing Video & Audio transitions in FPC 4.5

    Hello I recently replaced my HD and reinstalled all my Apps. After downlaoding 2 hrs of video on my scratch drive and getting ready to edit I noticed my effects tab is missing and when I look in the menu under effects (specifically video and audio tr

  • IPod touch 2g Crashes

    Hi I have had my iPod touch for 2 years with out apple care and for some reason every 5 minutes my iPod touch would flash a white screen and then just die. I know apple cant do anything because I am out warrenty =( any suggestions?