Including location file in Attachment of IP_MESSAGE_TYPE to B2B

Dear Reader,
I am using SOA suite 10.1.3.4. and B2B 10g configured in Suse.
I have made a BPEL proces that enqueues messages using an AQ adapter to the B2B database. For this I need to fill in the IP_MESSAGE_TYPE (payload header) that is required by EBxml that is set in the B2B Application. I have set the MSG_ID, FROM_PARTY, TO_PARTY, DOCTYPE_NAME, DOCTYPE_REVISION, ACTION_NAME, MSG_TYPE occording to the configurations done in the B2B application. This works perfectly and the message is picked up by the B2B application.
During new requirement I need to send an attachment to the B2B application that communicted this to the trading partner (using EBxml). THe moment I fill in the attachment the message produces errors in the B2B Application and I don't know what I am doing wrong. I would like to know if somebody can tell me in steps how I need to fill in the attachment in the payload header. I have tried the following:
1. Using an assign activity to fill the attachment field in the payload header with the expression: 'file:///home/oracle/b2b/attachments/inbound/example.xml'
The error 'Unable to create the protocol specific B2B message' arrise in the B2B application.
2. I have followed the steps in link:
https://metalink2.oracle.com/metalink/plsql/f?p=130:14:4427741198166476399::::p14_database_id,p14_docid,p14_show_header,p14_show_help,p14_black_frame,p14_font:NOT,754149.1,1,1,1,helvetica
I have created the xsd AttachmentsDescriptor.xsd in my local bpel process and assign the below XML fragment to the attachment field in the payload header.
<Attachments xmlns="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="AttachmentsDescriptor.xsd" version="1.0" boundary="boundary---">
<AttachmentPart>
<Location>file:///home/oracle/b2b/attachments/inbound/example.xml</Location>
<Content-Type>
<Top-Level-Type>application</Top-Level-Type>
<Sub-Type>xml</Sub-Type>
</Content-Type>
</AttachmentPart>
</Attachments>
This time no error occured everything seem to work, but in the B2B database there is no attachment specified in the wire message.
I hope somebody can explain me what I am doing wrong and what the steps in BPEL/B2B are to fix my problem.
Thanks for your time.
Regards,
Sander
Edited by: user606887 on Sep 25, 2009 4:53 AM

Hi Anuj,
Thanks for your reply. I have tested it on the server and it works. I am now busy to make it work with my BPEL proces. I am doing the following:
1. I am using a file adapter to store the sample.xml file on the configurated directorie specified in "oracle.tip.adapter.b2b.attachments.dir"
2. I pass the name of the file in this case Sample.xml in the field Attachment of IP_MESSAGE_TYPE (other mandatory fields of IP_MESSAGE_TYPE are filled)
My question is if I can make it work without step 1 to prevent extra I/O on the server. I would like to fill the Attachment of IP_MESSAGE_TYPE in such a way that I don't need the Sample.xml and that my attachment is picked up directly from the server. I am wondering how I can achieve this (if its possible).
My last question is if there is any good documentation for B2b 10g how I should configure the environment to prevent connections being kept alive when enqueuing message using AQ adapter.
Thanks for your time and help so far.
Regards,
Sander

Similar Messages

  • Including document in Attachment of IP_MESSAGE_TYPE to B2B

    Dear Reader,
    I am using SOA suite 10.1.3.4. and B2B 10g configured in Suse.
    I have made a BPEL proces that enqueues messages using an AQ adapter to the B2B database. For this I need to fill in the IP_MESSAGE_TYPE (payload header) that is required by EBxml that is set in the B2B Application. I have set the MSG_ID, FROM_PARTY, TO_PARTY, DOCTYPE_NAME, DOCTYPE_REVISION, ACTION_NAME, MSG_TYPE occording to the configurations done in the B2B application. This works perfectly and the message is picked up by the B2B application.
    During new requirement I need to send an attachment to the B2B application that communicted this to the trading partner (using EBxml). THe moment I fill in the attachment the message produces errors in the B2B Application and I don't know what I am doing wrong. I would like to know if somebody can tell me in steps how I need to fill in the attachment in the payload header. I have tried the following:
    1. Using an assign activity to fill the attachment field in the payload header with the expression: '/home/oracle/b2b/attachments/inbound/example.xml'
    The error 'Unable to create the protocol specific B2B message' arrise in the B2B application.
    2. I have followed the steps in link:
    https://metalink2.oracle.com/metalink/plsql/f?p=130:14:4427741198166476399::::p14_database_id,p14_docid,p14_show_header,p14_show_help,p14_black_frame,p14_font:NOT,754149.1,1,1,1,helvetica
    I have created the xsd AttachmentsDescriptor.xsd in my local bpel process and assign the below XML fragment to the attachment field in the payload header.
    <Attachments xmlns="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="AttachmentsDescriptor.xsd" version="1.0" boundary="boundary---">
    <AttachmentPart>
    <Location>file:///home/oracle/b2b/attachments/inbound/example.xml</Location>
    <Content-Type>
    <Top-Level-Type>application</Top-Level-Type>
    <Sub-Type>xml</Sub-Type>
    </Content-Type>
    </AttachmentPart>
    </Attachments>
    This time no error occured everything seem to work, but in the B2B database there is no attachment specified in the wire message.
    I hope somebody can explain me what I am doing wrong and what the steps in BPEL/B2B are to fix my problem.
    Thanks for your time.
    Regards,
    Sander

    Hi Anuj,
    Thanks for your reply. I have tested it on the server and it works. I am now busy to make it work with my BPEL proces. I am doing the following:
    1. I am using a file adapter to store the sample.xml file on the configurated directorie specified in "oracle.tip.adapter.b2b.attachments.dir"
    2. I pass the name of the file in this case Sample.xml in the field Attachment of IP_MESSAGE_TYPE (other mandatory fields of IP_MESSAGE_TYPE are filled)
    My question is if I can make it work without step 1 to prevent extra I/O on the server. I would like to fill the Attachment of IP_MESSAGE_TYPE in such a way that I don't need the Sample.xml and that my attachment is picked up directly from the server. I am wondering how I can achieve this (if its possible).
    My last question is if there is any good documentation for B2b 10g how I should configure the environment to prevent connections being kept alive when enqueuing message using AQ adapter.
    Thanks for your time and help so far.
    Regards,
    Sander

  • I am trying to make a signature in MS Word (2007) which includes a jpg image, but when I save it as a HTML file and attach it the text appers OK but the image doesn't. I have tried various formats but still no luck. Can anyone help?

    I am trying to make a signature in MS Word (2007) which includes a jpg image, but when I save it as a HTML file and attach it the text appers OK but the image doesn't. I have tried various formats but still no luck. Can anyone help? edit

    C'mon! Anyone???? I'm desperate!

  • How to include .jar files in coldfusion code 

    To Integrate our cfm code with paypal jar files we do the
    following steps with our local coldfusion server ,and to run and
    integrate the paypal Java SDK jar files, I think we need to do the
    same process on the server, can you suggest any thing to do the
    following setting for my domain on the server, without setting the
    class path in coldfusion administrator.
    The ColdFusion application server must be configured to know
    the location of the PayPal JAR
    files, and your ColdFusion Markup (CFM) pages must be
    configured with the absolute path to
    the PayPal API certificate for the PayPal API user on whose
    behalf the calls are made.
    1. Install the PayPal Java SDK “Installing the
    SDK”.
    2. Copy a subset of the Java SDK JAR files to a location
    accessible by the ColdFusion
    application server. The JAR files are in SDK_root\lib and
    their exact names are as
    follows:
    – bcmail-jdk14-128.jar
    – bcprov-jdk14-128.jar
    – paypal_base.jar
    – paypal_stubs.jar
    sax2.jar
    – xerces.jar
    – xpp3-1.1.3.4d_b4_min.jar
    – xstream.jar-1.1.3.jar
    3. With the ColdFusion Application Server Administrator, add
    the absolute path of the
    location you determined in Step 2 to the Java and JVM
    CLASSPATH environment variable.
    4. Restart the ColdFusion Application Server.
    Suggest me how to include .jar files without setting
    classpath.

    > Suggest me how to include .jar files without setting
    classpath.
    Copy them to {CF_HOME}\lib, where {CF_HOME} is, for example,
    C:\CFusionMX7. Restart Coldfusion.

  • Help? Adobe Acrobat 11 Standard - just purchased for windows 7 now I can't open pdf files or attach?

    Help!!!
    I just puchased the latest Adobe Acrobat XI Standard.
    I put in the Serial Key number but my computer tells me that a qualifying product could not be found on my computer so I can't use the adobe product. So now I can't open any files or attach pdf files onto emails without this message coming up. I've un-installed the "Adobe Acrobat XI Standard twice! with no luck.
    I need it sorted ASAP as I'm trying to work! Any suggestions?

    DotBellaParis if you are being asked for a qualifying product then it would appear you purchased an upgrade to Acrobat XI Standard.  You should have the opportunity to enter the serial number for your previous purchase of Acrobat.  You can find information on how to locate your previous serial numbers at http://forums.adobe.com/message/3987968#3987968?promoid=KBHJW.
    If you did not intend to purchase an upgrade then I would recommend submitting a return request.  You can find more details on submitting a return at Return, cancel, or exchange an Adobe order - http://helpx.adobe.com/x-productkb/policy-pricing/return-cancel-or-change-order.html.  Once you have returned the upgrade you can then purchase the full version which will not ask you for a qualifying product or serial number.

  • How to Include JS file already available in SharePoint Site(Style Library) in Command action

    I have included JS file in command Action Using below command 
     <CommandUIHandlers>
            <CommandUIHandler
              Command="EnableCustomGroup"
              CommandAction="javascript:return true;" />
            <CommandUIHandler
              Command="CustomGroupHelloWorld"
              CommandAction="javascript:openPopup();" />
          </CommandUIHandlers>
        </CommandUIExtension>
      </CustomAction>
      <CustomAction Id="Ribbon.Library.Actions.Scripts"
     Location ="ScriptLink"
     ScriptSrc="/_layouts/15/images/Scripts/Popup.js" /> 
    It was working fine now I am embeding my project to Development Project in which we have divided the Modules in to two different projects One project with all Branding work including all CSS and JS files (including the above Popup.JS file) which once deployed
    and the js file is residing in Style Library. 
    The Second project has the Command Action to call the JS file which is already residing in Site (Style Library) I am unable to refer that file path I tried using "/Style Library...... Popup.js" and also the full URL "http://site collection/style
    Library/... Popup.js" just to make sure if it is working or not. But it is throwing error saying file is not found. Can anyone help me how to refer the file what source URL should i give. Thanks in Advance
    Thanks and Regards,
    Raj Kamal Singh Rathore

    Hi,
    According to your description, my understanding is that you want to reference the custom JavaScript file which stored in the style library in custom action.
    I suggest you can reference the js file using the relative path of Style library like below:
    <?xml version="1.0" encoding="utf-8"?>
    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
    <CustomAction
    Title="test"
    ScriptSrc="~SiteCollection/Style Library/jquery-1.11.2.min.js"
    Location="ScriptLink"
    Sequence="100"
    >
    </CustomAction>
    More information:
    Referencing JS files using CustomAction element
    Thanks
    Best Regards
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Include jsf file in a jsp page

    Hi Everyone,
    I have a plain jsp page with no JSF Components, but it has a jsp:include tag which is another jsp file which contains jsf components.
    When i try to run the plain jsp file ... i get the following error...
    java.lang.IllegalStateException: Cannot forward after response has been committed
         at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:324)
         at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:312)
         at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322)
         at com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:147)
         at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87)
         at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200)
         at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:198)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:703)
         at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:589)
         at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
         at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966)
         at org.apache.jsp.DynamicWebpart_jsp._jspService(DynamicWebpart_jsp.java:278)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:298)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:703)
         at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:589)
         at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
         at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966)
         at org.apache.jsp.Webpart_jsp._jspService(Webpart_jsp.java:302)
         at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
         at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:298)
         at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
         at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:703)
         at org.apache.catalina.core.ApplicationDispatcher.doInclude(ApplicationDispatcher.java:589)
         at org.apache.catalina.core.ApplicationDispatcher.include(ApplicationDispatcher.java:499)
         at org.apache.jasper.runtime.JspRuntimeLibrary.include(JspRuntimeLibrary.java:966)
         .......... so.....on........
    I saw the source code for the plain jsp file and the error is because of including the jsp file with jsf components.
    The contents of both the jsp file is given below
    Plain jsp file
    DWStaticJSP.jsp
    <%@ page import="java.util.*" %>
    <%@ page import="com.mirus.bi.jsp.*" %>
    <%@ page import="com.mirus.bi.util.Log" %>
    <% Log.logDbg("*******before calling the faces file from DWStatic :"+rSetting.getStaticJSPFileName()); %>
    // name of the file name : /faces/report_palm.jsp
    <jsp:include page="<%=rSetting.getStaticJSPFileName()%>" flush="false" >     
                   <jsp:param name="DMode" value="DBoard" />
    </jsp:include>
    Jsp file with JSF component
    it is stored in faces folder
    /faces/report_palm.jsp
    <%@ page contentType="text/html" %>
    <%@ page import="com.mirus.bi.util.Log" %>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
    <%@ taglib uri="http://mirus.com/jsftaglib" prefix="my" %>
    <f:view>
              <h:outputText value="Store Name:" />
              <h:outputText value="#{palmReportUIHandler.currentStoreDisplay}" />
              <h:outputText value="Year:" />
              <h:outputText value="#{palmReportUIHandler.currentYear}" />
              <h:outputText value="Month:" />
              <h:outputText value="#{palmReportUIHandler.currentMonth}" />
    </f:view>
    The Configuration in the web.xml for faces Servlet is given below
    <servlet>
    <servlet-name>FacesServlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <!-- Faces Servlet Mapping -->
    <servlet-mapping>
    <servlet-name>FacesServlet</servlet-name>
    <url-pattern>/faces/*</url-pattern>
    </servlet-mapping>
    Does anybody know the solution to this problem
    Any kind of help will be highly appreciated.
    Pinkesh

    Hi Adam Winer,
    I want to try your solution.
    just wanted some more clarification .....
    So, let's say you have:
    DWStaticJSP.jsp: plain JSP
    report_palm.jsp: JSF JSP included by DWStaticJSP.jsp
    What you should do is use an URL of:
    /faces/DWStatic.jsp
    to access the outer plain JSP (yes, even though it's not really a faces page), and then have
    /faces/DWStatic.jsp include just plain /report_palm.jsp.
    In essence, the critical thing is that the FacesServlet wraps the entire request - FacesServlet cannot run
    for just a piece of the request.My question is where should i store the DWStatic.jsp file ... As u said i should acces it using /faces/DWStatic.jsp do i need to save it in the faces folder or just in the web app root.
    I cant save the DWStatic.jsp in the faces folder as this file is used for lot of different purpose in my company application.
    So can u give me a solution where in i can keep the DWStatic.jsp in the web-root folder and still try your solution
    Also is this the right setting for facesServlet in the web.xml.
    <servlet>
    <servlet-name>FacesServlet</servlet-name>
    <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
    <load-on-startup>1</load-on-startup>
    </servlet>
    <!-- Faces Servlet Mapping -->
    <servlet-mapping>
    <servlet-name>FacesServlet</servlet-name>
    <url-pattern>/faces/*</url-pattern>
    </servlet-mapping>
    Whatever follows below this line is the describtion of the web appp structure which i have in my company.
    We have an application where in all the jsp files are stored in the web-app root folder.....
    I will be using alphabets like a.jsp ... b.jsp .... to keep the explanation small...
    I have an a.jsp file which includes a b.jsp file which in turn includes a c.jsp......
    Now we have started using JSF.....
    Now as a developer .... i want the c.jsp to include a d.jsp file which contains JSF components...
    The thing is i cant change the location of a.jsp, b.jsp and c.jsp......
    Can u tell me how i should call " a.jsp" ... imean the url so that the "d.jsp" file gets processed properly.
    Also where should i save all the jsp files and what config is requiered in the web.xml for your solution
    I thank you for your help
    Pinkesh

  • Difference in File Adapter Read File as attachment and Use File streaming

    Hi all,
    As part of our POC we created a File adapter using the option Read file as attachment and File streaming we observed below things
    1.When we are taking “Attachment” option in file adapter, Its able to archive, but not supporting to write data to different location(using fileadapter’s write operation.)
    2.when WE are taking “ file streaming “ option in the adapter , Its not able to achive, but it writes data to different location(using fileadapter’s write operation.)
    Can anyone know is this is a correct behaviour . If yes what is the reason .
    Thanks
    Phani

    Hi all,
    As part of our POC we created a File adapter using the option Read file as attachment and File streaming we observed below things
    1.When we are taking “Attachment” option in file adapter, Its able to archive, but not supporting to write data to different location(using fileadapter’s write operation.)
    2.when WE are taking “ file streaming “ option in the adapter , Its not able to achive, but it writes data to different location(using fileadapter’s write operation.)
    Can anyone know is this is a correct behaviour . If yes what is the reason .
    Thanks
    Phani

  • How to include jar files in WS assembling

    HI, There:
    I have a webservice project works well except I canot include lib files in WEB-INF. I need following dir in war files
    WEB-INF
    --classes/com.xyz.....
    --lib/my.jar
    I use following target in build.xml
    <target name="webservice-setup" depends="setup,compile-webservice">
    <echo message="-----> Assembling the webservice"/>
    <oracle:assemble appName="${app.name}"
    serviceName="${app.name}"
    interfaceName="com.ivgn.protomineWS.service.ProtomineService"
    className="com.ivgn.protomineWS.service.ProtomineServiceImpl"
    input="${bld.webservice.dir}"
    output="${out.dir}"
    ear="${lib.dir}/${ear.name}.ear">
    <classpath>
    <pathelement location="${OC4J_HOME}/webservices/lib/wsa.jar"/>
    </classpath>
    </oracle:assemble>
    </target>
    where can i add the lib directory so that many jar files for this application can get into lib directory. Looks like this "assemble" command has no argument for "lib". The "input" argument only handle the classes files.
    Thanks
    TZhang

    There are two way to do this.
    1) you assemble the .ear file, expand it's content, make modification and re-package using jar command (plain ant style).
    2) instead of using the -ear option, you can use the -war option. It will leave the content in is expanded form, and you can then do the packaging in your own way, after making modifications.
    You may also want to take a look at the 'appendToExistingDDs' flag of the assemble command (see chapter 16 of the user's guide [1]).
    appendToExistingDDs <true|false>
    Determines whether entries for a new Web service will be appended to the existing
    deployment descriptors or whether they will be overwritten. The deployment
    descriptors that can be affected by this argument are oracle-webservices.xml,
    web.xml, and webservices.xml.
    Beware; this style of assembly is a little hard to use, as you cannot re-run the same target twice, without to restore the original files.
    Hope this helps,
    Eric
    [1] http://download-west.oracle.com/otn_hosted_doc/ias/preview/web.1013/b14434.pdf

  • Dreamweaver Extension to view all included CSS files in a document?

    Is there such an extension that would allow you to view, via a panel, all inlcuded CSS filed within a document?
    It would be so nice to see a nice list of all of your included CSS files, especially when there are several, and also being able to launch them and edit them without having to go into code view within the document, find the reference, and then Ctrl+D to edit the stylesheet.  I swear I saw something like this once, but I can't find it anywhere now...

    Have you looked in the CSS Styles panel? If you have "All" selected, then you can see cach attached CSS file and perofrm any edits you want to and not have to open the files. Also, if you have Dreamweaver CS4, then the Related Files bar lists all related files, including any CSS files and you can select the CSS file name and you can edit the files directly.
    While in the CSS Styles panel, if you right click on the selector, or on the properties for a selector, then you can choose Goto Code which will take you to the correct file and the correct line for the code of the specific selector.
    Or am I missing something that you're trying to accomplish?

  • What is the best way to include external files in an application?

    I am developing a vocabulary-training program (Adobe AIR using Flex Builder 3). Asks you what an equivalent of a czech word is in english and the other way. I am storing the "dictionaries" in external XML files. I would like to include about twenty of them in the installation. So far I just had them in the applicationDirectory, but now, I added an editing feature and I ran across the fact, that I cannot write into the applicationDirectory. So I figured the most intuitive place for the dictionaries would be in the documentsDirectory/name of program. However, how do I tell the AIR installation to make the according folder and include the files?
    How do I do this, or what do you think is a better solution? Thanks!

    If this post answers your question or helps, please mark it as such.
    I'm creating an application that stores data in the "applicationStorageDirectory".      
    Mac storage directory is <appData>/<appId>/Local Store/
      where <appData> is user preferences folder, typically /Users/<user>/Library/Preferences
    Win: storage directory is <appData>\<appId>\Local Store\
      where <appData> is typically C:\Documents and Settings\<userName>\Application Data
      Note: Vista uses "junctions", which behave like shortcuts but look just like regular folders.
        It is not possible to access them, and any attempt to do so will give you an "Access Denied" error.
        Here is the real folder location:
          C:\Users\<userName>\AppData\Roaming\ContactManager\Local Store\contacts.xml
    Linux: <appData>/<appID>/Local Store/    where  <appData>  is  /home/<user>/.appdata
    Here is how to code to read from and write to a file there in an AIR app:
    var contactsFile:File;
    var contactsXML:XML;
    var contactsXLC:XMLListCollection;
    var stream:FileStream;
    contactsFile = File.applicationStorageDirectory;
    contactsFile = contactsFile.resolvePath("contacts.xml");
    stream = new FileStream();
    if (contactsFile.exists) {
        stream.open(contactsFile, FileMode.READ);
        contactsXML = XML(stream.readUTFBytes(stream.bytesAvailable));
        stream.close();
        contactsXLC = new XMLListCollection(contactsXML..contact);
    }else{
        var outputString:String = '<?xml version="1.0" encoding="utf-8"?>\n<contacts>\n';
        for each(var xml:XML in  contactsXLC){
          outputString += xml.toXMLString();       
          outputString += "\n";
        outputString += "</contacts>\n";
        outputString = outputString.replace(/\n/g, File.lineEnding);
        stream = new FileStream();
        stream.open(contactsFile, FileMode.WRITE);
        stream.writeUTFBytes(outputString);
        stream.close();

  • Error message on On Location files

    I use Adobe On Location on a laptop for recording video quite a bit.  I then copy the folder with the On Location files to my main computer for editing.  When I import an .avi file created in On Location into Premiere CS4, I see a yellow exclamation symbol in lower right hand corner.  Clicking on this symbol brings up the message "File importer detected an inconsistancy in the structure of xxxx.avi.  Reading and writing this file's metadata (XMP) has been disabled."  However, I have no problems editing the files, so I haven't worried about it.  But I am curious to know why this happens on every .avi file created in On Location, and if I should be worried about it.
    J. D.

    I am having the same issue when importing clips from OnLocation.  I am beginning a huge production and I am concerned this issue might cause issues down the road with editing, encoding, mastering.
    I have checked the files and sequence and they are the same.
    I have seen others have this issue, but there does not seem to be anyone that knows exactly why it's happening and how to correct it.  Including Adobe,  I weent round & round with Adobe support in India and finally gave up.
    Error message in Event Panel:  File importer detected an inconsistency in the file structure of filename.avi.  Reading and writing this file's metadate (XMP) has been disabled.
    Adobe Production Premium CS4
         Premier Pro CS4 v.4.2.1 
         OnLocation CS4
    Windows 7, Ultimate 64bit
    12GB Memory
    1TB System HDD
    2TB - RAID 0 Video Processing HDDs
    2TB Video Storage HDD
    nVida Quadro 1800 1GB Video
    1934 FW Capture

  • [AIR to iOS] Reading 'included' video file with NetStream, possible?

    Hey all,
    During publishing of the app you have a chance to include extra files. I'd like to include a f4v flash video that I'd like to play via the Video class. I'm having a bit of trouble figuring out how to get these two connected.
    I can get a full reference to the file ala the usual and use .url or .nativePath:
    var videoFile:File = File.applicationDirectory.resolvePath("some.f4v");
    When I try to pass that into a NetStream such as:
    var myVideo:Video = new Video();
    addChild(myVideo);
    var nc:NetConnection = new NetConnection();
    nc.connect(null);
    var ns:NetStream = new NetStream(nc);
    myVideo.attachNetStream(ns);
    ns.play(videoFile.url);
    This never works for me. Nor using:
    ns.play(videoFile.nativePath);
    Anyone ever get a class like Loader or NetStream, etc to load included files in AIR for iOS or Android projects? See anything wrong here? Thanks for tips!

    I got this to work (exactly as mentioned above) in Android but on iOS I get issues. I also need to use .url as .nativePath doesn't seem to be friendly.
    The performance is another thing. Trying to play a 800x480 video on a HTC EVO 4G (single 1ghz snapdragon) was a painful 1-2fps mess. I encoded the video in f4v H.264 and also mp4 H.264. They were both 1-2FPS.
    Clearly waiting for StageVideo in AIR3.0 is going to be the fix for this whole mess.
    ns.play("videofile.f4v") ... I don't think that your first 3 lines are needed or appropriate here, are they?
    You're in AIR for Android/iOS so you have the flash.filesystem package you should look at, specifically the File class. It helps AIR load files you package that are located in your applicationDirectory.

  • Find does not locate files in system...?

    I often use find to try and locate a file that I need.  For example a Cubase components folder so that I can update an ASIO file for my recording software... or similar.
    On many occassions Find and Spotlight ends up blank and shows nothing when using part or the exact name of what I am searching for?
    Do I need to adjust settings for it to locate any file?

    Can it be set as a default for the search?
    Annoyingly, no. All you can do is check the box next to "System Files" in the popup list so that it will appear on the list when you click on the default "Kind" popup, which saves you having to search through the "Other" list to select it.
    But you can't even set its default option to "are included" so it will always take several clicks to get Finder searches to include system files.
    One thing you can do for searches that you regularly use is to save them, using the "Save" button on the right. They can be saved to the default location ~/Library/Saved Searches or anywhere else that is convenient, & optionally added to the Finder sidebar. But they are mostly just useful for searches with several different criteria (added with the + button to the right of the Kind line) because otherwise they don't save many clicks.
    Experiment with this & I think you will see what I mean.

  • Any suggestions on how you can transfer photos (including location description etc) from iphoto's on a Mac air book to a Mac?

    Any suggestions on how you can transfer photos (including location description etc) from iphoto's on a Mac air book to a Mac? Whenever I export the pictures the additional information is lost

    Two ways:
    1. File -> Export. Set the Kind to Jpeg or Tiff
    Check the boxes at 'Location Information' and 'Titles and Keyword'
    The information is written to the iptc and Exif metadata on the file.
    2. Use iPhoto Library Manager This will get all of the information plus faces and edit history
    Regards
    TD

Maybe you are looking for

  • Where is the output mini display port in the new imac 21,5 ?

    Hello all, I have buyed a new imac 21,5. In the apple web store says that the imac have a output for mini display port but I can't find it. I need to connect an other screen in my imac. Who can help me in this question ? Thank you very much in advanc

  • Issue with to_char in sql

    Hi, I am trying to execute below statment which gives me error: select CASE WHEN BAL < =0 THEN 0 ELSE to_char(ABS(BAL),'fm9999999999999999990.90') END BALANCE from ACCOUNT_TABLE Error: inconsitent datatypes: expected NUMBER got CHAR It works fine whe

  • Software update by blackberry link in windows 8

    Can anyone help me to sort out the software updates for my Z10 using blackberry link installed in my laptop with windows 8?  I cannot see the 'install updates' link ......!!

  • How to know ITS Server URL??

    Dear all, I am trying to call ECC Transactions into IC Webclient, For that I have mapped logical system and need to give ITS Client number and URL in 'CRMS_IC_CROSS_SYS' transaction. I dont know from where we can get ITS client number and URL. We are

  • Can a plugin like NIK Dfine be used within an action?

    I am trying to automated some of my mundane tasks in PS CC and I am wondering can a plugin like Nik Dfine be launched within an action? If so will it pause at the right point and then pressing OK continue through the remainder of the action. Thanks J