On 2007.10.23, Damien O'Rourke <[EMAIL PROTECTED]> wrote:
> I've been experimenting with the components in nsdci, most  
> particularly the sob service, and am impressed with it.

I'm SO glad you were able to get it working!  I keep hearing "we need
documentation first" from people, but apparently there was enough for
you to get it going, at least.

> What I'm struggling with though is if I store an image file to the
> sob with sob.copy and then try and retrieve it later with nsob.get,
> it only returns the first 4 or 10 bytes of the file.

SOB isn't encoding-aware and is actually really naive--it doesn't handle
binary data well.

A work-around that may work is to use Tcl's [encoding] explicitly,
i.e.:

    nsob.put $id [encoding convertto utf-8 $value]

I believe if you do this, you shouldn't need to do anything special when
you nsob.get, as Tcl internally expects the data to be utf-8.

-- Dossy

-- 
Dossy Shiobara              | [EMAIL PROTECTED] | http://dossy.org/
Panoptic Computer Network   | http://panoptic.com/
  "He realized the fastest way to change is to laugh at your own
    folly -- then you can let go and quickly move on." (p. 70)


--
AOLserver - http://www.aolserver.com/

To Remove yourself from this list, simply send an email to <[EMAIL PROTECTED]> 
with the
body of "SIGNOFF AOLSERVER" in the email message. You can leave the Subject: 
field of your email blank.

Reply via email to