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> </DIV>
<DIV><FONT face=3DArial size=3D2>I'm trying to use wddx to pass an =
image=20
file 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> </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> </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><HTML><BR><HEAD><BR> =20
<TITLE>Testing Sending=20
data</TITLE><BR></HEAD><BR><BODY></P>
<P><!--- Display the original image file ---><BR><IMG=20
SRC=3D"top.jpg"></P>
<P><!--- Read Binary file into a variable ---><BR><CFFILE=20
ACTION=3D"ReadBinary"<BR> =20
FILE=3D"C:\InetPub\wwwroot\packets\top.jpg"<BR> =20
VARIABLE=3D"preq"></P>
<P><!--- convert data into printable chracter format for transmission =
---><BR><CFSET q=3DtoBase64(preq)></P>
<P><br><br></P>
<P><!--- display resulting string ---><BR>The converted to =
printable data=20
is:...<P><BR><CFOUTPUT><BR> =20
#q#<BR></CFOUTPUT><P></P>
<P><!--- Serialize data to WDDX format ---><BR>Serializing CFML=20
data...<P><BR><CFWDDX ACTION=3D'cfml2wddx' input=3D#q#=20
output=3D'wddxText'></P>
<P><!--- Display WDDX XML packet ---><BR>Resulting WDDX packet=20
is:<BR><xmp><CFOUTPUT>#wddxText#</CFOUTPUT></xmp>=
</P>
<P><!--- Transmit the WDDX XML packet to the server ---></P>
<P><BR> <FORM METHOD=3D"POST"=20
ACTION=3D"receive.cfm"><BR> <INPUT =
TYPE=3D"HIDDEN"=20
NAME=3D"RequestPacket" =
value=3D"#wddxText#"><BR> <INPUT=20
TYPE=3D"SUBMIT" NAME=3D"SUBMIT"=20
VALUE=3D"SUBMIT"><BR> </FORM> </P>
<P></BODY><BR></HTML></P>
<P> </P>
<P>Receiving Page :</P>
<P><!--- Deserialize to a variable named wddxResult =
---><BR>Deserializing=20
WDDX packet...<P><BR><CFWDDX ACTION=3D'wddx2cfml' =
input=3D"#RequestPacket#"=20
output=3D'qnew'></P>
<P><BR><!--- convert deserialized variable back to binary ---></P>
<P><CFOUTPUT><BR><CFSET=20
qnew2=3DtoBinary(qnew)><BR></CFOUTPUT></P>
<P><!--- save the binary data as a new file ---></P>
<P><CFFILE=20
ACTION=3D"WRITE"<BR>OUTPUT=3D"#qnew2#"<BR>FILE=3D"C:\Inetpub\wwwroot\pack=
ets\new.jpg"></P>
<P><BR><!--- display the new file on the page ---></P>
<P>The newly saved image is:...<P></P>
<P><IMG SRC=3D"new.jpg"><BR></P>
<P> </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.