Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

upload jpeg file in xml

User10941911-OracleJul 28 2009 — edited Aug 10 2009
Hi,
Could you please tell me how to upload a jpeg file in xml. for example i have an jpeg file in c:/images/image1.jpg,i need to store this image in an xml and pass this image to a webservice. webservice has xsd file as given below.
I have xsd file like below, need corresponding xml for this xsd
<schema attributeFormDefault="unqualified"
elementFormDefault="qualified"
targetNamespace="http://xmlns.oracle.com/uploadJpg"
xmlns="http://www.w3.org/2001/XMLSchema">
<element name="uploadJpgProcessRequest">
<complexType>
<sequence>
<element name="Sessionid" type="string"/>
<element name="Name" type="string"/>
<element name="Address" type="string"/>
<element name="JPEGPicture" type="base64Binary"/>
<element name="user" type="string"/>
<element name="password" type="string"/>
</sequence>
</complexType>
</element>
<element name="uploadJpgProcessResponse">
<complexType>
<sequence>
<element name="result" type="string"/>
</sequence>
</complexType>
</element>
</schema>
ultimately corresponding xml will look like this
<Sessionid>fdsdsfd </Sessionid>
<Name>sdfsfsf</Name>
<Address>fsrerhfg</Address>
<JPEGPicture>WHAT IS THE CONTENT WE HAVE TO GIVE HERE </JPEGPicture>
What is the content we have to give in <JPEGPicture></<JPEGPicture> so that we can get the image located in our local directory stored in <JPEGPicture> tag
Could anybody please help me in acheiving this...its really very urgent...Please help me...
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 7 2009
Added on Jul 28 2009
5 comments
4,290 views