upload jpeg file in xml
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...