Am 10.06.2005 um 18:55 schrieb Stephen Deasey:


You've just passed arbitrary bytes to an API which expects UTF8.
Expect your server to crash...



Hm....

set chan [open /the/file.img]
fconfigure $chan -translation binary
set datain [read $chan]
close $file
nsv_set Images file.img $datain
#
set dataout [nsv_set Images file.img]
set chan [open /the/fileout.img w]
fconfigure $chan -translation binary
puts -nonewline $chan $dataout
close $file

Crash ?

Zoran



Reply via email to