XML chars replace

All -
I have table with name column data with special chars- How can I replace these special chars from PL/SQL with their values (i.e &amp with & and &apo;s with ').
I know can remove by SQL by set escape on. But can you please let me know how to do this if I read this table in PL/SQL code..
String
sda&ampsds
asd'e
Result
sda&sds
asd'e
Thanks-

I am using oracle 9i
I would like to replace &amp in string with '&' and '&apo;s' with single quote '
If I set escape on (\) and do replace it works. But when I want to select this column in PL/SQL procedureto replace these then it will prompt "Enter value for xxxx: "
--Pls let me know if you need more information
--Jim                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

Similar Messages

  • Query on XML Beans replacing Castor Java -XML Bindings

    Hello,
    We use Castor XML Framework for today Java - XML bindings and were looking for XML Beans replacement.
    One of the key problems we face in using XML (maybe a flawed design) is we create XSD for our applications and run Castor to generate Java Classes as Libraries (XMLFramework.jar).
    Applications are compiled with these Java libraries and Castor is used to Marshal the Java Object as XML Document when invoking a remote API and at the receiving side it is used to unmarshal back the XML document to Java Object.
    Major issues we have seen is that if any XSD (that defines application ICD) changes, we need to re-generate Castor Java classes (new XMLFramework.jar) and re-compile applications that were using these classes with new JAR files..... Thus for small XSD changes the impact is in lot of applications (where an application is an EAR deployed on WLS)
    Does XMLBeans help here that I can change XSD without changing all the end-points that use Classes generated out of these XSDs (when additing mandatory or optinal elements) ?
    Or there is a flaw in which we have used the Java-XML binding framework like Castor and XMLBeans do not help much ?

    Can someone please suggest on how I can go about
    converting an XML file into word format using Java
    ?How about POI?

  • Non xml char

    Hi, all,
    I need to create a DOM tree and take the value from user input,
    I have no idea how the user can enter the strange chars like BEL.
    Do I need validate every char make sure is in the xml char range when I create
    the node? or the biuld in parser will take care of it?

    Hi,
    use
    out.write(OutputDoc.asXML().getBytes("UTF-8"));
    or
    out.write(OutputDoc.asXML().getBytes("ISO-8559-1"));
    Regards, mario

  • XMLStreamException: Unable to write XML string which starts with the illegal XML char 0x0000

    Hi,
    I am trying to run a WebLogic 8.1 Workshop webservice using Tuxedo Controls. I
    am running in to an XML error:
    <faultcode>JWSError</faultcode>
    <faultstring>com.bea.xml.marshal.XmlEncodingException: Error writing XML stream:
    com.bea.xml.pure.XMLStreamException: Unable to write XML string which starts with
    the illegal XML char 0x0000</faultstring>
    <detail>
    If i look into the application server log file, It says:
    <FML32Deserializer::deserializeInteger>
    ####<Dec 19, 2003 1:25:00 PM CST> <Debug> <WLW> <centurytelweb> <cgServer> <ExecuteThread:
    '11' for queue: 'weblogic.kernel.Default'> <<anonymous>> <BEA1-0237CF026485B78A2335>
    <000000> <Exception deserializing field BUFFERSIZE, exception: weblogic.jws.control.ControlException:
    Error getting field BUFFERSIZE as a Integer, exception: 4 (FNOTPRES)>
    ####<Dec 19, 2003 1:25:00 PM CST> <Debug> <WLW> <centurytelweb> <cgServer> <ExecuteThread:
    '11' for queue: 'weblogic.kernel.Default'> <<anonymous>> <BEA1-0237CF026485B78A2335>
    <000000> <FML32Deserializer::deserializeField - Name=ROWID, type=class java.lang.String>
    But these fields are in the field table class file generated using java weblogic.wtc.jatmi.mkfldclass32

    I am pasting the response i get while i try to run this web service using WebLogic
    Workshop.
    Anyones help would be much appreciated.
    Thanks,
    Deepak
    Service Response
    Submitted at Friday, December 19, 2003 1:25:00 PM CST
    <error>
    <faultcode>JWSError</faultcode>
    <faultstring>com.bea.xml.marshal.XmlEncodingException: Error writing XML stream:
    com.bea.xml.pure.XMLStreamException: Unable to write XML string which starts with
    the illegal XML char 0x0000</faultstring>
    <detail>
    com.bea.wlw.runtime.core.request.ResponseValidationException: com.bea.xml.marshal.XmlEncodingException:
    Error writing XML stream: com.bea.xml.pure.XMLStreamException: Unable to write
    XML string which starts with the illegal XML char 0x0000
    at com.bea.wlw.runtime.jws.request.MimeXmlResponse.setReturnValue(MimeXmlResponse.java:35)
    at com.bea.wlw.runtime.core.bean.BaseDispatcherBean.runAsInvoke(BaseDispatcherBean.java:242)
    at com.bea.wlw.runtime.core.bean.BaseDispatcherBean.invoke(BaseDispatcherBean.java:54)
    at com.bea.wlw.runtime.core.bean.SyncDispatcherBean.invoke(SyncDispatcherBean.java:159)
    at com.bea.wlw.runtime.core.bean.SyncDispatcher_k1mrl8_EOImpl.invoke(SyncDispatcher_k1mrl8_EOImpl.java:100)
    at com.bea.wlw.runtime.core.dispatcher.Dispatcher.remoteDispatch(Dispatcher.java:134)
    at com.bea.wlw.runtime.core.dispatcher.Dispatcher.dispatch(Dispatcher.java:46)
    at com.bea.wlw.runtime.core.dispatcher.HttpServerHelper.exploreExec(HttpServerHelper.java:253)
    at com.bea.wlw.runtime.core.dispatcher.HttpServerHelper.executeGetRequest(HttpServerHelper.java:570)
    at com.bea.wlw.runtime.core.dispatcher.HttpServer.doGet(HttpServer.java:81)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1053)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:387)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6316)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3622)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2569)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
    Caused by: com.bea.xml.marshal.XmlEncodingException: Error writing XML stream:
    com.bea.xml.pure.XMLStreamException: Unable to write XML string which starts with
    the illegal XML char 0x0000
    at com.bea.xml.marshal.MarshalContext.error(MarshalContext.java:140)
    at com.bea.xml.marshal.MarshalContext.writeCharacterData(MarshalContext.java:178)
    at com.bea.xml.marshal.AtomicValueMPlan.marshal(AtomicValueMPlan.java:79)
    at com.bea.xml.marshal.MarshalContext.writeElementObjectOrHref(MarshalContext.java:426)
    at com.bea.xml.marshal.BaseMPlan.writeValueUsingStrategy(BaseMPlan.java:307)
    at com.bea.xml.marshal.BaseMPlan.marshal(BaseMPlan.java:349)
    at com.bea.xml.marshal.MarshalContext.writeElementObjectOrHref(MarshalContext.java:426)
    at com.bea.xml.marshal.BaseMPlan.writeValueUsingStrategy(BaseMPlan.java:307)
    at com.bea.xml.marshal.BaseMPlan.marshal(BaseMPlan.java:358)
    at com.bea.xml.marshal.MarshalContext.writeElementObjectOrHref(MarshalContext.java:426)
    at com.bea.xml.marshal.BaseMPlan.writeValueUsingStrategy(BaseMPlan.java:307)
    at com.bea.xml.marshal.BaseMPlan.marshal(BaseMPlan.java:349)
    at com.bea.xml.marshal.MethodMPlan.marshal(MethodMPlan.java:260)
    at com.bea.wlw.runtime.core.dispatcher.DispMessage.marshalXml(DispMessage.java:386)
    at com.bea.wlw.runtime.jws.request.MimeXmlResponse.writePart(MimeXmlResponse.java:105)
    at com.bea.wlw.runtime.jws.request.MimeXmlResponse.writeOutputPart(MimeXmlResponse.java:97)
    at com.bea.wlw.runtime.jws.request.MimeXmlResponse.setReturnValue(MimeXmlResponse.java:31)
    ... 22 more
    </detail>
    </error>
    "Deepak" <[email protected]> wrote:
    >
    >
    >
    Hi,
    I am trying to run a WebLogic 8.1 Workshop webservice using Tuxedo Controls.
    I
    am running in to an XML error:
    <faultcode>JWSError</faultcode>
    <faultstring>com.bea.xml.marshal.XmlEncodingException: Error writing
    XML stream:
    com.bea.xml.pure.XMLStreamException: Unable to write XML string which
    starts with
    the illegal XML char 0x0000</faultstring>
    <detail>
    If i look into the application server log file, It says:
    <FML32Deserializer::deserializeInteger>
    ####<Dec 19, 2003 1:25:00 PM CST> <Debug> <WLW> <centurytelweb> <cgServer>
    <ExecuteThread:
    '11' for queue: 'weblogic.kernel.Default'> <<anonymous>> <BEA1-0237CF026485B78A2335>
    <000000> <Exception deserializing field BUFFERSIZE, exception: weblogic.jws.control.ControlException:
    Error getting field BUFFERSIZE as a Integer, exception: 4 (FNOTPRES)>
    ####<Dec 19, 2003 1:25:00 PM CST> <Debug> <WLW> <centurytelweb> <cgServer>
    <ExecuteThread:
    '11' for queue: 'weblogic.kernel.Default'> <<anonymous>> <BEA1-0237CF026485B78A2335>
    <000000> <FML32Deserializer::deserializeField - Name=ROWID, type=class
    java.lang.String>
    But these fields are in the field table class file generated using java
    weblogic.wtc.jatmi.mkfldclass32

  • Preprocessing xml to replace all xpath references with the referred elements

    Hi,
    Is it possible to sort of pre-process xml before querying such as we replace all internal xpath references with the referred elements?
    So below is the xml and as we see the typeId element of second app.test.module.library.Publisher element refers to the typeId element in the first app.test.module.library.Publisher element through xpath reference . Seems this is done by XStream(which we
    use for xml-java) to reduce the size of resulting xml. This is all fine and in java one can easily traverse through such xpath references, but the challenge i am facing is in sql where i use node() function to get each of app.test.module.library.Publisher
    element and fetch value of selectedText element of both the children of app.test.module.library.Publisher - (typeId, regionCode). 
    declare @publishers xml
    set @publishers = '
    <publishers>
      <app.test.module.library.Publisher>
        <typeId>
          <selectedId>101</selectedId>
          <selectedText>Book</selectedText>
        </typeId>
        <regionCode>
          <selectedId>102</selectedId>
          <selectedText>NWD</selectedText>
        </regionCode>
      </app.test.module.library.Publisher>
      <app.test.module.library.Publisher>
        <typeId reference="../../app.test.module.library.Publisher/typeId" />
        <regionCode>
          <selectedId>101</selectedId>
          <selectedText>UWY</selectedText>
        </regionCode>
      </app.test.module.library.Publisher>
      <app.test.module.library.Publisher>
        <typeId>
          <selectedId>100</selectedId>
          <selectedText>Deposit</selectedText>
        </typeId>
        <regionCode>
          <selectedId>100</selectedId>
          <selectedText>WHU</selectedText>
        </regionCode>
      </app.test.module.library.Publisher>
    </publishers>';
    select typeId = el.e.value('(typeId/selectedText)[1]','varchar(max)')
          ,regionCode = el.e.value('(regionCode/selectedText)[1]','varchar(max)')
    from @publishers.nodes('/publishers/app.test.module.library.Publisher') as el(e)
    If you execute this, the second typeId value will be null but ideally I should be able to reach to the reference, which is typeId of first app.test.module.library.Publisher element and should be able to fetch selectedText of it, which is correct value (Book).
    In other words first two app.test.module.library.Publisher elements are of same type (Book).
    Since I am not able to find the way to do it, I thought I should have some way to process this xml to replace all such references with the referred element and that will eliminate the need to go for tedious xpath reference based access.
    Thanks

    I was able to get a result using dynamic SQL, but my guess is if you have more complicated examples it probably won't work.  I also make an assumption you know the full path of the first reference you want.  Anyway, try this:
    DECLARE @xml XML = '<publishers>
    <app.test.module.library.Publisher>
    <typeId>
    <selectedId>101</selectedId>
    <selectedText>Book</selectedText>
    </typeId>
    <regionCode>
    <selectedId>102</selectedId>
    <selectedText>NWD</selectedText>
    </regionCode>
    </app.test.module.library.Publisher>
    <app.test.module.library.Publisher>
    <!--<typeId reference="../../app.test.module.library.Publisher/typeId" />-->
    <typeId reference="../../app.test.module.library.Publisher/typeId" />
    <regionCode>
    <selectedId>101</selectedId>
    <selectedText>UWY</selectedText>
    </regionCode>
    </app.test.module.library.Publisher>
    <app.test.module.library.Publisher>
    <typeId>
    <selectedId>100</selectedId>
    <selectedText>Deposit</selectedText>
    </typeId>
    <regionCode>
    <selectedId>100</selectedId>
    <selectedText>WHU</selectedText>
    </regionCode>
    </app.test.module.library.Publisher>
    </publishers>'
    -- So you basically need to create and execute this string;
    -- but how do you work out the first bit of the string ?
    --SELECT @xml.query('(publishers/app.test.module.library.Publisher/typeId/../../app.test.module.library.Publisher/typeId)[1]');
    DECLARE @fullPath NVARCHAR(MAX) = 'publishers/app.test.module.library.Publisher/typeId/@reference' -- the full path of the reference
    DECLARE @shortPath NVARCHAR(MAX) = LEFT( @fullPath, CHARINDEX( '@', @fullPath ) - 1 ) -- full path without attribute name
    IF @shortPath IS NULL
    RAISERROR ( 'Unable to get @shortPath.', 16, 1 )
    -- Start processing the XML
    DECLARE @sql NVARCHAR(MAX), @reference NVARCHAR(MAX)
    -- Extract the reference
    SET @reference = @xml.value('(publishers/app.test.module.library.Publisher/typeId/@reference)[1]', 'NVARCHAR(MAX)')
    -- Construct the sql
    SET @sql = 'SELECT @xml.query(''(' + @shortPath + @reference + ')[1]'')'
    -- Execute the SQL
    EXEC sp_executesql @sql, N'@sql NVARCHAR(MAX), @xml XML', @sql, @xml
    Post back any issues you have with that approach and your real data.

  • JAXB Unnecessary encoding of reserved XML chars?

    Hello all.
    Hopefully what I'm experiencing is a simple problem to fix. I've got an XML document that has the ampersand char encoded as such:
    When I parse this document into a JAXB object, it is getting encoded to:
    &amp;
    I can't figure out how or why or how to make this not happen. Has anyone run into this and figured out why?
    Thanks for you time and help.
    chris

    If you have a string that happens to contain XML data, and you want to treat that data as text contents of a containing XML file instead of treating it as markup, then there are two ways to do that. One is to enclose it in a CDATA section:
    <![CDATA[...your data goes here...]]>
    The other is to escape the XML markup characters: & becomes &amp;, > becomes &gt;, < becomes &lt;, ' becomes &apos;, and " becomes &quot;.
    If that wasn't what you meant, try asking a different version of the question.

  • Update xml to replace value

    I have seen good example on how to use updateXML to update the value as the one below,
    but no luck on search on how to replace from one value to another.
    Does anyone have example on how to replace value using updateXML?
    Thanks,
    Luan
    insert into XML_CLOB values ( xmltype(
    '<student id="211">
    <personal idPer="2561">
    <firstName>John</firstName>
    <middleName>Michael</middleName>
    <lastName>Scott</lastName>
    <birthday>15-11-1984</birthday>
    <address>8600 Beverly Blvd.</address>
    <city>Los Angeles, CA.</city>
    <country>USA</country>
    </personal>
    <personal idPer="2561">
    <firstName>John</firstName>
    <middleName>Michael</middleName>
    <lastName>Scott</lastName>
    <birthday>15-11-1984</birthday>
    <address>8600 Beverly Blvd.</address>
    <city>Los Angeles, CA.</city>
    <country>USA</country>
    </personal>
    <personal idPer="2221">
    <firstName>John</firstName>
    <middleName>Michael</middleName>
    <lastName>Scott</lastName>
    <birthday>15-11-1984</birthday>
    <address>8600 Beverly Blvd.</address>
    <city>Los Angeles, CA.</city>
    <country>USA</country>
    </personal>
    </student>'));
    prompt 'select object_value from xml_clob';
    select object_value from xml_clob;
    prompt 'update XML_CLOBset object_value = updateXML( object_value,/student/personal/city/text(),New York City)where existsNode(object_value,/student[@id="211"]) = 1';
    update XML_CLOB
    set object_value = updateXML
    object_value,
    '/student/personal/city/text()',
    'New York City'
    where existsNode(object_value,'/student[@id="211"]') = 1;

    Sure, I meant to find/replace. In the real world example,
    I have an order with many items, but one item has typo missing a digit.
    I wanted to find that item and replace with new correct value in the xml.
    Order: 1234
    item: 9000292
    item: 9020777
    item: 9003833
    Let's say my third item "9003833" is not correct and I wanted to replace with new item "9003844". Hope that clear!
    here is an example that I am working with:
    I would like to replace firstName = "Luan" with "The World is Great" in my example below, and I want to replace only when it finds firstName = "Luan".
    drop table xml_clob
    create table xml_clob of xmltype;
    insert into XML_CLOB values ( xmltype(
    '<student id="211">
    <personal>
    <idPer>2561</idPer>
    <firstName>John</firstName>
    <middleName>Michael</middleName>
    <lastName>Scott</lastName>
    <birthday>15-11-1984</birthday>
    <address>8600 Beverly Blvd.</address>
    <city>Los Angeles, CA.</city>
    <country>USA</country>
    </personal>
    <personal>
    <idPer>2221</idPer>
    <firstName>Luan</firstName>
    <middleName>M</middleName>
    <lastName>Nguyen</lastName>
    <birthday>06-01-1977</birthday>
    <address>2100 Pine Street.</address>
    <city>Los Angeles, CA.</city>
    <country>USA</country>
    </personal>
    </student>'));
    select * from xml_clob
    -- This update statement does not correct. It didn't update the firstName value. I created a new "personal" tag and remove the previous "personal". I wanted to find("Luan") and replace("The World is Great").
    UPDATE xml_clob
    set object_value =
    UPDATEXML(object_value,
    '/student/personal[firstName="Luan"]/text()','The World is Great')
    -- Thanks,
    -- Luan

  • Xml being replaced by &lt and &gt?

    I am executing getxml() which selects several columns from a table. One column contains xml itself. The output from getxml() replaces the < and > with &lt and &gt for the xml inside this column only. How can I avoid this? I want the < and > to show.
    null

    How are you sending the data to the C# service? by generating stubs from the WSDL; using DII; etc. And in the service's WSDL, what is the type of the input and output messages and the types of the message parts?
    Mike

  • I've been writing software for 33yrs. I've many apps. I'd like to use html/xml to replace my aging IDE's. Firefox will no longer execuate a binary directly called from hypertext on the local system. Why?

    I would rather not re-write the old IDE's I've been using for years but rather replace them with html/xml web style pages. Konqueror will locally execute binaries with a launcher script. Firefox, Chrome, re-Konq, WebPositive, and IE Explorer will not. If Firefox or SeaMonkey would execute my binaries I could easily replace the old IDE's and save myself and my clients a lot of time and money.

    That isn't acceptable. I guess that if you don't want to tell me I'll go to Opera or Chrome and ask. I could simply disassemble the code. That takes a long time. 270 Clients some running software that was written as fare back as 1979. I know I'm small, but they have families and business to run. The cost of re-developing the IDE's is huge for small business. I had hoped you would help.

  • XML Path Replacement Help

    I'm trying to get this XML Path stuff working and I'm not having a lot of luck.  Can anyone tell me what might be wrong with this example?  I'm just trying to output the name of the query in a text item.
    I have the XML being generated for DP_1.  The error message is no help at all.  "Error during command processing"
    <bi:TEXT_ITEM name="TEXT_ITEM_1" designheight="70" designwidth="200" >
                    <bi:WITH_TRAY type="CHOICE" value="X" text="" >
                        <bi:TRAY_SETTINGS type="COMPOSITE" >
                            <bi:CAPTION path="DATA_PROVIDER:DP_1?/BICS_VIEW/QUERY/@text"></bi:CAPTION>
                        </bi:TRAY_SETTINGS>
                    </bi:WITH_TRAY>
                </bi:TEXT_ITEM>

    Hi,
    Which command did u try to get this done? I think you need to do the following:
    1. Add a data provider information item for DP_1.Set it property "Output Display" to on(the checkbox in the web item parameters for the 'data provider information item').
    2. Create a command at 'web template' level--Set_Web_Item_Parameters command, for the web item involved.
    3. In this command give a hard coded text value say 'Label1'.
    4. Execute the report and right click-> View source. Search for the term 'Label1'.
    5. Follow the path in the starting from BICS_VIEW till the word 'Label'. Copy this.
    6. In the HTML tab in the WAD replace the part value = 'Label1' with path = <result from step5>
    Thanks,
    Balaji

  • Unescape XML chars

    I'm working with SOAP. It escapes XML that gets placed into the message. I cannot find a utility to change the escapes back to <, /, >, and such. Anyone know of one?

    The name of such a utility is a "parser".

  • Illegal XML char 0x0000

    I'm getting an exception when trying to send a sql server text field over a web service. The text field contains html markup and is defined like so:
    <xsd:element name="NOTES" type="xsd:string" nillable="true" minOccurs="0" wld:JDBCType="LONGVARCHAR" wld:TableName="gm_company_insight"/>
    So, it's assumed to be type string. Is there another restriction I have to set to get this to ignore null chars?
    Thanx,
    Max

    I'm getting an exception when trying to send a sql server text field over a web service. The text field contains html markup and is defined like so:
    <xsd:element name="NOTES" type="xsd:string" nillable="true" minOccurs="0" wld:JDBCType="LONGVARCHAR" wld:TableName="gm_company_insight"/>
    So, it's assumed to be type string. Is there another restriction I have to set to get this to ignore null chars?
    Thanx,
    Max

  • XML Transform - Replace Namespace - WS-Addressing

    Hi All,
    I'm trying to do a XML transformation to change the namespace of WS-Addressing of a XML message that arrives to Oracle Web Services Manager(OWSM), but no success.
    This is the what arrives to OWSM:
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Header>
    <To xmlns="http://www.w3.org/2005/08/addressing">http://something.com</To>
    <Action xmlns="http://www.w3.org/2005/08/addressing">initiate</Action>
    <ReplyTo xmlns="http://www.w3.org/2005/08/addressing">
    <Address>http://something.com</Address>
    </ReplyTo>
    <MessageID xmlns="http://www.w3.org/2005/08/addressing">uuid:saude042</MessageID>
    </soap:Header>
    <soap:Body xmlns:ns1="http://something.com">
    </soap:Body>
    </soap:Envelope>
    This is what I want to pass to the BPEL:
    <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <soap:Header>
    <MessageID xmlns="http://schemas.xmlsoap.org/ws/2003/03/addressing">uuid:saude042</MessageID>
    </soap:Header>
    <soap:Body xmlns:ns1="http://something.com">
    </soap:Body>
    </soap:Envelope>
    I'm having some questions about how to do the XSLT...
    Anyone have an example?
    Thank you in advance.
    Carla

    http://www.oracle.com/technology/pub/articles/jones-owsm.html
    Overhere they describe how to edit the soap header by using a custom step.

  • Non-alphanumeric chars replaced with underscore when saving long filenames

    Hi,
    I have a java application that streams a byte array (content type: 'application/pdf') to an Internet Explorer window. The PDF displays fine, in an embedded version of Adobe Reader 8. However, if I click on the Adobe 'Save' button then the filename gets changed as follows:
    PDF URL: http://localhost:8080/mcs/ctrl/flowOpenJobPDFWindow/AP1070.pdf?veryLongQueryString...
    PDF filename: http___localhost_8080_mcs_ctrl_flowOpenJobPDFWindow_AP1070.pdf
    Anything that isn't alphanumeric is converted into an underscore character. I would expect, and need, the file to be named something like 'AP1070.pdf'.
    I think this has something to do with the fact that I am streaming content to IE because if I point an IE window to an identical file that actually exists on the server then the filename when saving does look like 'AP1070.pdf', regardless of the length of the URL or querystring. Does adobe reader expect something in the header to stop this happening?
    I can provide java code if this would be useful, or any other information required. If you think this is more likely to be a java issue then I thank you for your time and will raise on a java forum.
    Environment:
    Windows XP Professional Version 2002 Service Pack 2.
    Adobe Reader 8.
    Internet Explorer 7.0.5730.11
    Many thanks,

    You can give feedback to Apple at their Feedback Page.

  • Map binary data (PDF) to XML not possible due to non-printable chars

    Hi XI Gurus,
    we have the following issue.
    We send a PDF as binary data (as a hex string '25255044462D3' ) along with some other information from ERP within one RFC to XI , doing a message split 1:n for those two kind of messages (1. the PDF, 2. the XML) an send the split messages to file/ftp receiver adapter.
    The message split and sending of the messages is working well, but we encounter some problems with non-printable chars (hex code below 0x20) in the pdf binary. The PDF data and the dynamic file name is mapped into an XML. But the non printable characters are converted into '#' when mapped into the XML target field.
    (Due to the 1:n multi mapping, we cannot put the filename into dynamic configuration, so we have to map the pdf and the filename into an XML and extract the content with variable substitution in receiver file adapter....)
    My question is: how can binary data with non-printable chars be sent through XI and can be mapped into an XML without beeing replaced by '#' ?
    Any help will be greatly appreciated.
    Thanks and regards
    Holger

    Maybe I didn´t explained it clearly enough.
    We do not have the issue that the RFC puts the '#' into the string. We got from the RFC a hex string containing the pdf as visible hex values like:
    As you can see we have the pdf as hex string. During message mapping XI replaces some non-printable chars like '0x04' or '0x19' with '#'.
    My question is: how can we avoid those char replacement ?
    BTW: I grabbed a pdf with sender file adapter, routed through XI without any mapping and send it with ftp in binary mode. But the pdf contains more chars as the origional file and the pdf content is not visible when opening with a pdf reader like Acrobat. I guess the file adpter has problems with carriage return and linefeed chars. Some CR and LF are replaced inserted somehow.
    Best regards,
    Holger

Maybe you are looking for

  • How to get the values from table SKB1 R/3  to SRM

    Hi Gurus, My requirement is to get all the values from the table SKB1 to SRM (i.e. in to an internal table) for doing some validation(G/L account XXXXXX requires an assignment to a CO objectXXXXXX.) Like wise I have many tables for doing validation i

  • Need to disable Text Item Link on Requisition Approval Form (Self Service)

    Hi All When I open a Requisition via Workflow Administration for approving it.I am able to see the following sections. Requisition Lines Approval Sequence Related Applications Edit Requisition View Requisition Details. I want the "Edit Requisition" b

  • Adobe elements 10 crashing

    Adobe elements 10 keeps crashing and it used to work.  Why?  Fix?

  • Using my music in iPhoto

    I am trying to make a slide show and use my own music from iTunes how can i download music to iPhoto?

  • BPC WEB Report

    In BPC web report , i can able to see the Activity data options ... But i cant able to see the Audiit activity report information in the my application set Please how to enable the Audit data report in the BPC Web.............. Please suggest Regards