Problem: Storing binary data in Xml Cdata section
The objective : Tranport image using xml
1. I convert the image to input stream.
2. store it in an array.
3. encode the string using Base64 library and get a string
4.then i store it in xml CDATA section.
the code snippet is
public class ImgToXml01 {
public static void main(String[] args) throws IOException
File inputFile = new File("C:\\Arup\\ImgXml\\read\\Sample.jpg");
FileInputStream in = new FileInputStream(inputFile);
String str="";
int c;
while ((c = in.read()) != -1) {
str+= ""+c;
String val = util.Base64.encode(str);
System.out.println(""+val);
OutputStream fout = new FileOutputStream("img.xml");
OutputStreamWriter out = new OutputStreamWriter(fout);
out.write("<?xml version = \"1.0\" encoding = \"ISO-8859-1\"?>\r\n");
out.write("<Image>\r\n");
out.write("[CDATA["+val+"]]");
//out.write("]]>");
out.write("</image>\r\n");
out.close();
When i retrieve it i write the code:
import org.xmldb.api.base.*;
import org.xmldb.api.modules.*;
import org.xmldb.api.*;
import org.w3c.dom.*;
import java.io.*;
import org.xml.sax.SAXException;
import oracle.xml.parser.v2.*;
public class CdataToImage01 {
public static void main(String[] args) //throws IOException
try{
String uri="c:\\Arup\\ImgXml\\img1.xml";
String data="";
File file = new File(uri);
FileInputStream fis = new FileInputStream(file);
BufferedInputStream in = new BufferedInputStream(fis);
DOMParser parser = new DOMParser();
parser.parse(in);
Document doc = parser.getDocument();
Node r = doc.getElementsByTagName("Image").item(0);
NodeList kids = r.getChildNodes();
if ( kids != null ) {
for ( int i = 0; i < kids.getLength(); i++ ) {
if ( (kids.item(i).getNodeType() == Node.TEXT_NODE) ||
(kids.item(i).getNodeType() == Node.CDATA_SECTION_NODE)) {
data=kids.item(i).getNodeValue();
String data1 = util.Base64.decode(data);
File outputFile = new File("Sample.jpg");
FileOutputStream out = new FileOutputStream(outputFile);
byte[] buff = data1.getBytes();
InputStream inn = new ByteArrayInputStream(buff);
int c;
System.out.println(buff.length);
while ((c = inn.read()) != -1) {
out.write(c);
inn.close();
out.close();
catch (SAXException e) {
System.err.println(e);
e.printStackTrace();
catch (Exception ex){
System.err.println("Exception occured " + ex.getMessage());
ex.printStackTrace();
But i am not getting the appropriate result .I get a corrupted image.
FROM
ARUP GHOSH
String str="";
int c;
while ((c = in.read()) != -1) {
str+= ""+c;
}Your problem is here.
Let's suppose you just have a trivial 3-byte file containing the bytes 27, 55, and 126. Your program will convert that into the string "2755126". Then you base-64 encode it, etc etc, then you base-64 decode it and (hopefully) produce the same string "2755126". Converting this string to bytes and writing it to a file produces a 7-byte file containing the bytes 50, 55, 53, 53, 49, 50, and 54. Not the same at all. You could prove this to yourself by putting in some debugging statements.
I don't know how to suggest a fix because it looks to me as if your base-64 utility takes a String as its input. It should take an array of bytes, or an InputStream.
PC²
Similar Messages
-
Problem retrieving Data from a CDATA-Section using XMLDOM
Hello,
Ware: Oracle 8.1.7.4 64bit, XDK for PL/SQL Version 9.2.0.3, Solaris8 64bit
I can't retrieve Data from the CDATA-Section of an XML-String, neither with
getData(DOMCharacterData) or substringData. Also getLength fails. I get always
the following error:
ERROR at line 1:
ORA-29532: Java call terminated by uncaught Java exception: java.lang.ClassCastException
ORA-06512: at "XML_SCHEMA.XMLCHARDATACOVER", line 0
ORA-06512: at "XML_SCHEMA.XMLDOM", line 853
ORA-06512: at "SCHWABE.XML_TEST", line 47
ORA-06512: at line 1
I can successfully cast the DOMNode to a CharacterData with makeCharacterData
and check with isNull (DOMCharacterData) (returns FALSE).
My Testcase:
1) A Function which build a XML-Document:
CREATE OR REPLACE FUNCTION XML_ResponseCalc RETURN VARCHAR2 IS
doc VARCHAR2(32767);
BEGIN
doc :=
'<?xml version="1.0" encoding="UTF-8"?>
<RSDecEng>
<Version>1.00</Version>
<ResponseCalc>
<ID>00000000000000000014</ID>
<Burst>
<Definition>
<Count>1</Count>
<ID>
<Start>1</Start>
<Length>4</Length>
</ID>
<Var>
<Name>Risiko_1</Name>
<Start>5</Start>
<Length>5</Length>
</Var>
</Definition>
<Data>
<Length>9</Length>
<Count>5</Count>
<![CDATA[
1 0.001
2 0.002
3 0.003
4 0.004
5 0.005
6 0.006
7 0.007
8 0.008
9 0.009
10 0.010
]]>
</Data>
</Burst>
</ResponseCalc>
</RSDecEng>
2) The Procedure which parses the XML-Document (no Exception-Handling):
CREATE OR REPLACE PROCEDURE XML_TEST IS
Parser XML_SCHEMA.XMLParser.Parser;
DOMDocument XML_SCHEMA.XMLDOM.DOMDocument;
DOMNode XML_SCHEMA.XMLDOM.DOMNode;
DOMNodeItem XML_SCHEMA.XMLDOM.DOMNode;
DOMNodeList XML_SCHEMA.XMLDOM.DOMNodeList;
DOMCharacterData XML_SCHEMA.XMLDOM.DOMCharacterData;
TheDocument CLOB;
ID VARCHAR2(100);
Data VARCHAR2(200);
BEGIN
-- LOB
DBMS_LOB.CREATETEMPORARY(TheDocument, TRUE);
DBMS_LOB.WRITEAPPEND(TheDocument, LENGTH(XML_ResponseCalc), XML_ResponseCalc);
-- Parse
Parser := XML_SCHEMA.XMLParser.NewParser;
XML_SCHEMA.XMLParser.ParseCLOB(Parser, TheDocument);
DOMDocument := XML_SCHEMA.XMLParser.GetDocument(Parser);
XML_SCHEMA.XMLParser.FreeParser(Parser);
-- Node
DOMNode := XML_SCHEMA.XMLDOM.MakeNode(DOMDocument);
-- Get ID
DOMNodeList := XML_SCHEMA.XSLProcessor.SelectNodes
(DOMNode,'/RSDecEng/ResponseCalc/ID/text()');
IF XML_SCHEMA.XMLDOM.GetLength(DOMNodeList) > 0 THEN
DOMNodeItem := XML_SCHEMA.XMLDOM.Item(DOMNodeList, 0);
XML_SCHEMA.XMLDOM.WriteToBuffer(DOMNodeItem, ID);
SYS.DBMS_OUTPUT.PUT_LINE ('ID: '||ID);
END IF;
-- Get CDATA
DOMCharacterData := XML_SCHEMA.XMLDOM.MakeCharacterData(DomNode); -- <-- ok here...
IF NOT XML_SCHEMA.XMLDOM.isNull (DOMCharacterData) THEN -- <-- ...and here
Data := XML_SCHEMA.XMLDOM.GETDATA(DOMCharacterData); -- <-- ...but here Exception raise
END IF;
END;
I hope you can help me.
Thank you in advance
Markus SchwabeYou need to notice the definitions for makecharacterdata:
FUNCTION makeCharacterData(n DOMNode) RETURN DOMCharacterData;
PURPOSE
Casts given DOMNode to a DOMCharacterData
It only do the casting. -
Hi,
I am new for ALSB and I have problem with it.
How can I transform binary Data to xml. The binary datas are in a directory and after mapping to xml, I want them to have in other directory or in Oracle DB.
With Query tool I created binary_to_XML.xq file but can't use it in ALSB.
ALSB passes the files with out mapping?!
Thanks,
EmulateThe ALSB forum is http://forums.bea.com/bea/category.jspa?categoryID=600000003
-
How to convert Binary Data into XML ???
I am calling the getTaskInfo method of TaskManagerService class using Web Service API.
The result includes the formdata in two formats:
1. Binary content of the form
2. Remote URL of the form data
I have to find a value of a particular field using one of the above information.
I am unable to convert the binary data to XML directly. I have also tried fetch the document based on remoteURL parameter which is also not working.
Any suggestions are highly appreciated.
Thanks
NithHi Steffen,
I found the same solution and fixed the issue long time back. Just forgot to close this forum topic.
Thanks for your knowledge sharing.
Nith -
Help needed with binary data in xml (dtd,xml inside)
I am using the java xml sql utility. I am trying to load some info into a table.
my.dtd:
<!ELEMENT ROWSET (ROW*)>
<!ELEMENT ROW (ID,JPEGS?)>
<!ELEMENT ID (#PCDATA)>
<!ELEMENT DESCRIPTION EMPTY>
<!ATTLIST DESCRIPTION file ENTITY #REQUIRED>
<!NOTATION INFOFILE SYSTEM "Files with binary data inside">
<!ENTITY file1 SYSTEM "abc.jpg" NDATA INFOFILE>
xml file:
<?xml version="1.0" standalone="no"?>
<!DOCTYPE ROWSET SYSTEM "MY.DTD">
<ROWSET>
<ROW>
<ID>1272</ID>
<DESCRIPTION file="file1"/>
</ROW>
</ROWSET>
I am using the insertXML method to do this. However, the only value that gets loaded is the ID. abc.jpg is in the same directory where I ran the java program.
Thanks in advance.Sorry! wrong dtd. It should read this instead:
my.dtd:
<!ELEMENT ROWSET (ROW*)>
<!ELEMENT ROW (ID,DESCRIPTION?)>
<!ELEMENT ID (#PCDATA)>
<!ELEMENT DESCRIPTION EMPTY>
<!ATTLIST DESCRIPTION file ENTITY #REQUIRED>
<!NOTATION INFOFILE SYSTEM "Files with binary data inside">
<!ENTITY file1 SYSTEM "abc.jpg" NDATA INFOFILE>
null -
Download file problem for binary data?
Dear All,
I have wrote a jsp file to do download page. I have used a piece of code from the JDC to this. This code will prompt the download dialog box each time user clicks the download button. The code itself will set the content type for different application. The code is like below:
try
java.io.File fileobj = new java.io.File(strFolder + strFile);
response.setContentType(application.getMimeType(fileobj.getName()));
response.setHeader("Content-Disposition","attachment; filename=\""
+ strFile + "\"");
java.io.FileInputStream in = new java.io.FileInputStream(fileobj);
int ch;
while ((ch = in.read()) != -1) {
out.write(ch);
out.flush();
in.close();
} catch(Exception e)
The code can download and handle text file correctly when it is openned in the text editor or inside the IE. But when a PDF file or Image is downloaded and openned in the PDF viewer or image viewer, it is corrupted and cannot be viewed. What is the problem? Any ideas?
So, I wonder this code can handle binary data or not. It is seen like there is no different code to handle text and binary data in Java/Jsp.
Thank you very much!
Best Regards,
Rockyu Lee
Add following lines to .tld file (custom tag definition)
<tag>
<name>downloadbinary</name>
<tagclass>org.rampally.DownloadBinaryTag</tagclass>
<bodycontent>JSP</bodycontent>
</tag>
Add following line to JSP files.
In JSP, keep one line of source. Make sure that there are no space and additional line feeds at the any where
in the JSP files except JSP tags.
<%@ taglib uri="/WEB-INF/taglibs/mb.tld" prefix="mytags" %>
<mytags:downloadbinary />
I am hoping that you have all required parameters such as fileName to download, etc.
in your session or request object.
Tag class ....
public class DownloadBinaryTag extends TagSupport {
public int doEndTag() throws JspException {
// TODO: get binary data from filename or
// binary data buffer from datase.
// I am making it simple .. assume that it is a request parameter for
// you test easily.
String fileName = request.getParameter( "filename" );
java.io.File file = new java.io.File( fileName);
java.io.DataInputStream dis;
try {
dis = new java.io.DataInputStream(new FileInputStream(fileName));
} catch (FileNotFoundException e) {
// do error handling ...
return EVAL_PAGE;
BinaryUtil.sendBinaryFile( dis, (HttpServletResponse) pageContext.getResponse(), contentType );
return EVAL_PAGE;
public class BinaryUtil
static public void sendBinaryFile( DataInputStream dis,
HttpServletResponse response,
String contentType ) {
try {
response.setContentType(contentType);
String fileName="test.pdf";
response.setHeader("Content-disposition", "inline; filename=" + newFileName );
ServletOutputStream sout = response.getOutputStream();
int len;
byte[] data = new byte[128 * 1024];
while ((len = dis.read(data, 0, 128 * 1024)) >= 0)
sout.write(data, 0, len);
sout.flush();
sout.close();
} catch (Exception e) {
System.out.println(e.getMessage());
static public void sendBinaryFile( byte[] data,
HttpServletResponse response,
String contentType ) {
try {
response.setContentType(contentType);
String fileName="test.pdf";
response.setHeader("Content-disposition", "inline; filename=" + newFileName );
ServletOutputStream sout = response.getOutputStream();
sout.write(data);
sout.flush();
sout.close();
} catch (Exception e) {
System.out.println(e.getMessage());
You may have to change 'inline' to 'attachment' if you do not want IE to inline the document.
That's all!!.. Hope this helps...! -
Hi,
I have some tables and I store binary data in varchar2 column. I want to create xml document from one of the table using xsql. What will happen to binary data? Can xml document takes care of binary data? I will appreciate, if I get the answer/solution for this.
Thanks
Prasanta DeHi,
I have some tables and I store binary data in varchar2 column. I want to create xml document from one of the table using xsql. What will happen to binary data? Can xml document takes care of binary data? I will appreciate, if I get the answer/solution for this.
Thanks
Prasanta De -
Hi,
Is there a standard way (or maybe encoding to be used) to include
binary data in an XML document? I am interested in both inline
inclusion and external inclusion.
Thanks.
- sam
nullThere is no way to include binary data within the document;
however it could be referenced as an external unparsed entity
that resided in a different file.
Sam Lee (guest) wrote:
: Hi,
: Is there a standard way (or maybe encoding to be used) to
include
: binary data in an XML document? I am interested in both inline
: inclusion and external inclusion.
: Thanks.
: - sam
Oracle XML Team
http://technet.oracle.com
Oracle Technology Network
null -
Storing binary data to a file......
Hi Friends,
I am trying to make a webapp in which users can upload Videos and I can store that videos on the server. I have this bit of code:
public ActionForward execute(
ActionMapping mapping,
ActionForm form,
HttpServletRequest request,
HttpServletResponse response) throws Exception{
VideoUploadForm myForm = (VideoUploadForm)form;
// Process the FormFile
FormFile myFile = myForm.getTheFile();
byte[] fileData = myFile.getFileData();
}My question is, should i store the byte array into some text file???Then how can i read it back and get the original format i.e *.avi or *.mpg.
This might be easy,but this is my first time dealing with binary data,so your help would be appreciated.
Thanks
P.S: Any links would be appreciatedThanks BalusC,
After lots of hardwork finally I am trying to upload the binary file in the database,but getting this error:
java.sql.SQLException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'desc, file_blob) values(1, 1, 'uploaded file from user', _binary'\0\0�!\0\0�\' at line 1
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2928)
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1571)
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1666)
at com.mysql.jdbc.Connection.execSQL(Connection.java:2994)
at com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:936)
at com.mysql.jdbc.PreparedStatement.execute(PreparedStatement.java:773)
at org.apache.tomcat.dbcp.dbcp.DelegatingPreparedStatement.execute(DelegatingPreparedStatement.java:168)This is my code thats trying to write that binary file:
public class StoreData {
private static Log log = LogFactory.getLog(StoreData.class);
private static final String INSERT_BLOB = "Insert into videos.files (id, owner_id, desc, file_blob)" +
" values(1, 1, 'uploaded file from user', ?)";
public void WriteData(VideoUploadForm myForm){
log.info("Writing file to database");
Connection conn = ConnectionUtil.getConnection();
PreparedStatement stmt = null;
// Process the FormFile
FormFile myFile = myForm.getTheFile();
byte[] bytes = null;
try{
bytes = myFile.getFileData();
}catch(IOException ie){
log.error("Upload File not Found");
ie.printStackTrace();
InputStream is = new ByteArrayInputStream(bytes);
try {
stmt = conn.prepareStatement(INSERT_BLOB);
stmt.setBinaryStream(1,is,bytes.length);
stmt.execute();
stmt.close();
}catch (Exception e) {
log.error("Error writing data to file:");
e.printStackTrace();
} finally {
ConnectionUtil.closeStatement(stmt);
ConnectionUtil.closeConnection(conn);
}Looking for some help here..... -
Problem with embedded data-sources.xml and custom UserManager
Hi all,
Our application uses a custom UserManager, which is basically extended from the JDBC UserManager, declared as follows in orion-application.xml:
<user-manager class="com.infocorpnow.a2g.security.oracle.A2GUserManager">
<property name="table" value="pos.users" />
<property name="userNameField" value="username" />
<property name="passwordFiled" value="password" />
<property name="dataSource" value="jdbc/A2GDS" />
<property name="groupMemberShipTableName" value="pos.user_roles" />
<property name="groupMemberShipGroupFieldName" value="role_name" />
<property name="groupMemberShipUserNameFieldName" value="login_id" />
</user-manager>
Since we want to be able to deploy the application several times on the application server, and therefore have each deployment of the ear point to its own datasource (i.e. its own local "A2GDS"), we've found out how to embed data-sources.xml inside the EAR file we're deploying, and modify the orion-application.xml as follows:
<data-sources path="./data-sources.xml" />
And then place data-sources.xml in the same meta-inf folder as the orion-application.xml.
This has worked fine when deploying to the standalone OC4J.
Now when I try to deploy the exact same EAR file in Oracle 9iAS, and I get to the User Manager screen, the Custom User Manager does not show up correctly. It did show up prior to me embedding the data-sources.xml. Please help? This is fairly urgent.
Thanks
JasonI should also mention I'm using the Java Edition of 9iAS R2 (9.0.3 container) on Solaris.
-
Problem in load data from XML in Flex 4
Hi Everyone,
I tried all the possible ways which ever i know to load the data from XML to Flash Builder (Flex 4). Actually i want to load the data from XML to Datagrid. The project is executed without any error and warnings but the data is not loaded into datagrid. i will paste the coding below if anyone know the solution please let me know. Waiting for reply.
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600" creationComplete="userRequest.send(); ">
<fx:Declarations>
<s:HTTPService id="userRequest" url="xdata.xml" useProxy="false" resultFormat="e4x" />
</fx:Declarations>
<mx:DataGrid id="dgUserRequest" x="20" y="160" dataProvider="{userRequest.lastResult.user}" >
<mx:columns>
<mx:DataGridColumn headerText="User ID" dataField="id"/>
<mx:DataGridColumn headerText="User Name" dataField="name"/>
</mx:columns>
</mx:DataGrid>
</s:Application>It is better to add result handler to the HttpService and debug to see the actual structure of the xml.
-
Problem Storing native data types in ViewState
The ViewState["m_UserAnswers"] won't seem to keep a value. It is always returning null. I set the value as you can see in the button OnClick method then i read it back in on the page load. I don't know what I am missing. Its
not the only ViewState var that keeps comming back null. Any ViewState var that i set in that same onClick method is null on page load. Any help would be much appreciated. Thanks, Eric
protected void Page_Load(object sender, EventArgs e)
if (!Page.IsPostBack) //initial load
//autofill date
txtDate.Text = DateTime.Now.ToString("d");
m_QuizQuestions = m_QuizDataAccess.GetQuizQuestions();
ViewState["m_QuizQuestions"] = m_QuizQuestions;
else // screen has been fully validated and quiz postback screen can be shown
// this viewstate is being set on initial page load **AND WORKS**
m_QuizQuestions = (List<clsQuizQuestion>)ViewState["m_QuizQuestions"];
// these viewstates are all being set on btnSubmit.Click **AND DON'T WORK**
m_UserAnswers = (int[])ViewState["m_UserAnswers"];
Response.Write("2." + m_UserAnswers[0].ToString() + "<br/>");
m_ValidatedAnswers = (string[])ViewState["m_ValidatedAnswers"];
m_NumberCorrect = Convert.ToInt32(ViewState["m_NumberCorrect"]);
Here is the onClick method where i set the ViewState values
protected void btnSubmit_Click(object sender, EventArgs e)
GetUsersAnswers();
m_ValidatedAnswers = m_QuizDataAccess.ValidateUserAnswers(m_UserAnswers);
ViewState["m_ValidatedAnswers"] = m_ValidatedAnswers;
foreach(string flag in m_ValidatedAnswers)
if(flag.ToLowerInvariant().Equals("y"))
m_NumberCorrect++;
ViewState["m_NumberCorrect"] = m_NumberCorrect;
private void GetUsersAnswers()
m_UserAnswers = new int[ListViewQuiz.Items.Count];
foreach (ListViewDataItem lvda in ListViewQuiz.Items)
HiddenField hfQuestionNumber = (HiddenField)lvda.FindControl("hfQuestionNumber");
int questionNumber = Convert.ToInt32(hfQuestionNumber.Value);
RadioButtonList rbl = (RadioButtonList)lvda.FindControl("rblQuestionAnswers");
m_UserAnswers[questionNumber - 1] = Convert.ToInt32(rbl.SelectedValue);
ViewState["m_UserAnswers"] = m_UserAnswers;
Response.Write("1." + m_UserAnswers[0].ToString() + "<br/>");Thread has been moved here.
Thank you. -
Hello all
I have created a directory where I have some images and I'm trying to store these in my database using the code below. The code, schema for the image table and the error is shown below.
SQL> DECLARE
2 photo_loc BFILE;
3 photo BLOB;
4 BEGIN
5 INSERT INTO image_ids VALUES(1,'P44240', EMPTY_BLOB(), 'an_image')
6 returning image into photo;
7
8 photo_loc := BFILENAME('IMAGE_DATA', '18.jpg');
9 DBMS_LOB.FILEOPEN(photo_loc);
10
11 DBMS_LOB.LOADBLOBFROMFILE(photo, photo_loc, DBMS_LOB.getlength(photo_loc), 1,1);
12 DBMS_LOB.FILECLOSE(photo_loc);
13 END;
14 /
DBMS_LOB.LOADBLOBFROMFILE(photo, photo_loc, DBMS_LOB.getlength(photo_loc), 1,1);
ERROR at line 11:
ORA-06550: line 11, column 77:
PLS-00363: expression '1' cannot be used as an assignment target
ORA-06550: line 11, column 79:
PLS-00363: expression '1' cannot be used as an assignment target
ORA-06550: line 11, column 2:
PL/SQL: Statement ignored
IMAGE_ID NOT NULL NUMBER(10)
SI_PRODUCT_ID NOT NULL VARCHAR2(10)
IMAGE BLOB
IMAGE_DESCRIPTION VARCHAR2(100)
Any help would be greatly appreciated.
Thanks
Ben.the error says that you have to replace the constant 1 with a variable. Please review the syntax.
-
Binary data problem with web services on JRockit but not Sun JDK
I have a problem with binary data in SOAP and JRockit
(jrrt-3.0.0-1.6.0-linux-x64.bin) . I have an set of web services based
on EJB 3.0 which return images as byte arrays inside a SOAP envelope
to be consumed by .NET 2 services. The host app server is Oracle
Application Server 10.3.1 on RHEL Linux update 4, on 64 bit Xeon 5500
series HP blade hardware.
While most images are fine most of the time, one particular image
gives this message when being consumed in the .NET client:
The '■' character, hexadecimal value 0x1F, cannot be included in a
name. Line 2, position 380038.
The MSDN suggests that this is usually caused by non-escaping of reserved XML characters like < but this isn't one of those.
The SOAP looks ok and for the life of me I can't see why this ought to
be a problem, especially since the problem doesn't arise running with
the SUN JDK 1.6_06 64 bit)
When making the same call from the OAS Enterprise Manager, I can make the same call with no problem (but the data is just rendered as character data in a browser) which maybe suggests some incompatibility with how JRockit is serializing the data ?
Any ideas, I would be very happy to hear - JRockit gives a 15% or so
speed boost to the website that these services power so obviously we
want to use it if possible.
Edited by: RichLiv on Nov 14, 2008 4:54 AMSeems to be the case that using MTOM stops this problem with JRockit. Strange but apparently true (so far).
-
Advantages of storing data in XML
Hi --
I am working with Oracle Database for long time but i haven't used XML much during this time. I am just trying to figureout the advantages of storing the data in XML (XMLType column).
If i have millions of records in multiple tables, is there any advantage in terms of performance & management of data when i store the data in XMLType.
For example:
If i am storing employee details in a table, i can create bunch of columns in a table and store the data, or i can create an XMLType column and store the complete data in that column. I am trying to figureout whether storing in XML format is better than in separate columns, especially if i have lot of data.
Thanks for your time & help
AnilRefer
http://www.oracle.com/technology/oramag/oracle/01-nov/o61xml.html
Maybe you are looking for
-
Problem with song playing...
Hey everyone...I'm trying to lay down a song to play with my movie and a window keeps popping up saying that the song is not authorized to play on this computer. I purchased the song from iTunes and I go ahead and authorize it and it keeps popping ba
-
Download speeds suddenly dropped
Over the past year and a half i havent had any problems with my service up until 2 days ago. Our download speeds went from 350KB to 28kb - 50kb... (we have the 3Mbps plan) the modem is set to bridge and connected to a linksys router. I've tried power
-
Hi, I have 2 submit buttons.I wrapped them up in a subform. 1st button is used to send e-mail (used Javascript) 2nd button used to save this form to app server (defaulted Javascript code) Now when user clicks 1st button I need to hide this 1st butt
-
Would anyone know the safe operating cpu temperatures of a 2.1 imac isight. thanking you
-
In the instructions it says to go into home share in advance which is on my computer. I'm using an ipad2 and can't find it! Helpppp.