This is a multi-part message in MIME format.

------=_NextPart_000_0011_01BFF9C9.E05FCA20
Content-Type: text/plain;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi everyone,

I'm trying to use wddx to pass an image file from one site to another =
over the web. I've followed the examples in the documentation and think =
I'm on the right track, but end up with the following error :

Error Occurred While Processing Request
      Error Diagnostic Information
      XML parsing error: not well-formed (error code 4, line 1, column =
9, buffer offset 9)=20


      The error occurred while processing an element with a general =
identifier of (CFWDDX), occupying document position (10:1) to (10:65).


      Date/Time: 07/30/00 01:10:29
      Browser: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0)
      Remote Address: 127.0.0.1
      HTTP Referer: http://127.0.0.1/packets/send.cfm=20

    =20




Here's the code I'm using - can anyone point out where I'm going wrong?

Sending Page:


<HTML>
<HEAD>
    <TITLE>Testing  Sending data</TITLE>
</HEAD>
<BODY>

<!--- Display the original image file --->
<IMG SRC=3D"top.jpg">

<!--- Read Binary file into a variable --->
<CFFILE ACTION=3D"ReadBinary"
    FILE=3D"C:\InetPub\wwwroot\packets\top.jpg"
    VARIABLE=3D"preq">

<!--- convert data into printable chracter format for transmission --->
<CFSET q=3DtoBase64(preq)>

<br><br>

<!--- display resulting string --->
The converted to printable data is:...<P>
<CFOUTPUT>
    #q#
</CFOUTPUT><P>

<!--- Serialize data to WDDX format --->
Serializing CFML data...<P>
<CFWDDX ACTION=3D'cfml2wddx' input=3D#q# output=3D'wddxText'>

<!--- Display WDDX XML packet --->
Resulting WDDX packet is:
<xmp><CFOUTPUT>#wddxText#</CFOUTPUT></xmp>

<!--- Transmit the WDDX XML packet to the server --->


  <FORM METHOD=3D"POST" ACTION=3D"receive.cfm">
   <INPUT TYPE=3D"HIDDEN" NAME=3D"RequestPacket" value=3D"#wddxText#">
   <INPUT TYPE=3D"SUBMIT" NAME=3D"SUBMIT" VALUE=3D"SUBMIT">
  </FORM>=20

</BODY>
</HTML>



Receiving Page :

<!--- Deserialize to a variable named wddxResult --->
Deserializing WDDX packet...<P>
<CFWDDX ACTION=3D'wddx2cfml' input=3D"#RequestPacket#" output=3D'qnew'>


<!--- convert deserialized variable back to binary --->

<CFOUTPUT>
<CFSET qnew2=3DtoBinary(qnew)>
</CFOUTPUT>

<!--- save the binary data as a new file --->

<CFFILE ACTION=3D"WRITE"
OUTPUT=3D"#qnew2#"
FILE=3D"C:\Inetpub\wwwroot\packets\new.jpg">


<!--- display the new file on the page --->

The newly saved image is:...<P>

<IMG SRC=3D"new.jpg">




Thanks,

J


------=_NextPart_000_0011_01BFF9C9.E05FCA20
Content-Type: text/html;
        charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.3017.1000" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi everyone,</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I'm trying to use wddx to pass&nbsp;an =
image=20
file&nbsp;from one site to another over the web. I've followed the =
examples in=20
the documentation and think I'm on the right track, but end up with the=20
following error :</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>
<H3>Error Occurred While Processing Request</H3>
<P>
<TABLE border=3D1>
  <TBODY>
  <TR>
    <TD>
      <H4>Error Diagnostic Information</H4>
      <P>XML parsing error: not well-formed (error code 4, line 1, =
column 9,=20
      buffer offset 9)=20
      <P>
      <P>The error occurred while processing an element with a general=20
      identifier of (CFWDDX), occupying document position (10:1) to =
(10:65).</P>
      <P>
      <P>Date/Time: 07/30/00 01:10:29<BR>Browser: Mozilla/4.0 =
(compatible; MSIE=20
      5.01; Windows NT 5.0)<BR>Remote Address: 127.0.0.1<BR>HTTP =
Referer: <A=20
      =
href=3D"http://127.0.0.1/packets/send.cfm">http://127.0.0.1/packets/send.=
cfm</A>=20

      <P></P></TD></TR></TBODY></TABLE></P>
<P>&nbsp;</P>
<P>Here's the code I'm using - can anyone point out where I'm going =
wrong?</P>
<P>Sending Page:</P>
<P><BR>&lt;HTML&gt;<BR>&lt;HEAD&gt;<BR>&nbsp;&nbsp;&nbsp;=20
&lt;TITLE&gt;Testing&nbsp; Sending=20
data&lt;/TITLE&gt;<BR>&lt;/HEAD&gt;<BR>&lt;BODY&gt;</P>
<P>&lt;!--- Display the original image file ---&gt;<BR>&lt;IMG=20
SRC=3D"top.jpg"&gt;</P>
<P>&lt;!--- Read Binary file into a variable ---&gt;<BR>&lt;CFFILE=20
ACTION=3D"ReadBinary"<BR>&nbsp;&nbsp;&nbsp;=20
FILE=3D"C:\InetPub\wwwroot\packets\top.jpg"<BR>&nbsp;&nbsp;&nbsp;=20
VARIABLE=3D"preq"&gt;</P>
<P>&lt;!--- convert data into printable chracter format for transmission =

---&gt;<BR>&lt;CFSET q=3DtoBase64(preq)&gt;</P>
<P>&lt;br&gt;&lt;br&gt;</P>
<P>&lt;!--- display resulting string ---&gt;<BR>The converted to =
printable data=20
is:...&lt;P&gt;<BR>&lt;CFOUTPUT&gt;<BR>&nbsp;&nbsp;&nbsp;=20
#q#<BR>&lt;/CFOUTPUT&gt;&lt;P&gt;</P>
<P>&lt;!--- Serialize data to WDDX format ---&gt;<BR>Serializing CFML=20
data...&lt;P&gt;<BR>&lt;CFWDDX ACTION=3D'cfml2wddx' input=3D#q#=20
output=3D'wddxText'&gt;</P>
<P>&lt;!--- Display WDDX XML packet ---&gt;<BR>Resulting WDDX packet=20
is:<BR>&lt;xmp&gt;&lt;CFOUTPUT&gt;#wddxText#&lt;/CFOUTPUT&gt;&lt;/xmp&gt;=
</P>
<P>&lt;!--- Transmit the WDDX XML packet to the server ---&gt;</P>
<P><BR>&nbsp;&nbsp;&lt;FORM METHOD=3D"POST"=20
ACTION=3D"receive.cfm"&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;INPUT =
TYPE=3D"HIDDEN"=20
NAME=3D"RequestPacket" =
value=3D"#wddxText#"&gt;<BR>&nbsp;&nbsp;&nbsp;&lt;INPUT=20
TYPE=3D"SUBMIT" NAME=3D"SUBMIT"=20
VALUE=3D"SUBMIT"&gt;<BR>&nbsp;&nbsp;&lt;/FORM&gt;&nbsp;</P>
<P>&lt;/BODY&gt;<BR>&lt;/HTML&gt;</P>
<P>&nbsp;</P>
<P>Receiving Page :</P>
<P>&lt;!--- Deserialize to a variable named wddxResult =
---&gt;<BR>Deserializing=20
WDDX packet...&lt;P&gt;<BR>&lt;CFWDDX ACTION=3D'wddx2cfml' =
input=3D"#RequestPacket#"=20
output=3D'qnew'&gt;</P>
<P><BR>&lt;!--- convert deserialized variable back to binary ---&gt;</P>
<P>&lt;CFOUTPUT&gt;<BR>&lt;CFSET=20
qnew2=3DtoBinary(qnew)&gt;<BR>&lt;/CFOUTPUT&gt;</P>
<P>&lt;!--- save the binary data as a new file ---&gt;</P>
<P>&lt;CFFILE=20
ACTION=3D"WRITE"<BR>OUTPUT=3D"#qnew2#"<BR>FILE=3D"C:\Inetpub\wwwroot\pack=
ets\new.jpg"&gt;</P>
<P><BR>&lt;!--- display the new file on the page ---&gt;</P>
<P>The newly saved image is:...&lt;P&gt;</P>
<P>&lt;IMG SRC=3D"new.jpg"&gt;<BR></P>
<P>&nbsp;</P>
<P>Thanks,</P>
<P>J</P></FONT></DIV></BODY></HTML>

------=_NextPart_000_0011_01BFF9C9.E05FCA20--


__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.com
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to