Richard,
If memory serves me right this is the opposite of what you were trying to do a few days ago. If so, judging from your posted solution I suggest you try this instead:
s serStr = ##class(%GlobalCharacterStream).%New() ... do serStr.SaveStream()
// +MAGIC // Now record the stream oref in the %qstrhandle structure s %qstrhandle(1, serStr) = serStr // Turn stream into a string representation of an oref s serStr = serStr_""
Set serStrID = serStr.GetStreamId()
&sql(update APIX.Storage set StreamData = :serStr where dbID = :dbID)
&SQL(UPDATE APIX.Storage SET StreamData = :serStrID WHERE dbID = :dbID)
For what you are passing in should be an OID, not an OREF (to my best knowledge anyway)
HTH,
Ram�n
-- ZCacheLib - Open Source Extensions for Cach� http://www.zcachelib.org
