It sounds like you're running into an Axis issue that's in the queue to have a
TechNote written about it. The information that I've gotten so far is:
It's an Axis bug. xsd:base64Binary should map to byte[] in Java,
not java.lang.Byte[]. As a workaround, please use the following
UDF to convert java.lang.Byte[] into byte[].
<cfscript>
// input type: java.lang.Byte[]
// output type: byte[]
function toByteArray(source)
{
len = arrayLen(source);
arrayClass = createObject("java", "java.lang.reflect.Array");
byteClass = createObject("java", "java.lang.Byte");
obj = arrayClass.newInstance(byteClass.TYPE, len);
for (i = 0; i lt len; i = i + 1)
{
arrayClass.set(obj, javaCast("int", i), source[i + 1]);
}
return obj;
}
</cfscript>
That's all the info I have at this point, but hopefully it'll help.
Deb
-----Original Message-----
From: Willy Ray [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, June 18, 2002 10:15 AM
To: CF-Talk
Subject: Re: CFMX Upgrade Woes!
OH! I should really try to figure stuff out on my own first... Well...
it's early.
Here's the story: We're using MySQL and we happen to be storing this
column as a BLOB. Binary object. If I set it to medium text, it works
fine...
I'm sure I'll be running into some more stuff!
Willy
-----
Willy Ray
Web Applications Developer
Certified Advanced ColdFusion Developer
Westminster College
>>> [EMAIL PROTECTED] 06/18/02 08:08AM >>>
Ok, we just moved our development platform from 5.0 to MX. This will
probably be a first-of-many kind of post. First error we come across
is
this:
ByteArray objects cannot be converted to strings.
The Error Occurred in /web/live/faculty_staff/index.cfm: line 13
11 : WHERE articleID = #variables.article#
12 : </cfquery>
13 : <cfset truncate = find(".",qGetArticle.Text,"150")>
14 :
15 :
I'm trying to truncate what *used to be* a text string out of my
database. Is there now some .toString() function I need to use, or
something?
Willy
-----
Willy Ray
Web Applications Developer
Certified Advanced ColdFusion Developer
Westminster College
______________________________________________________________________
This list and all House of Fusion resources hosted by CFHosting.com. The place for
dependable ColdFusion Hosting.
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Archives: http://www.mail-archive.com/[email protected]/
Unsubscribe: http://www.houseoffusion.com/index.cfm?sidebar=lists