in reply to Re^4: sql2008 Filestream
in thread sql2008 Filestream
my $binary = pack("b*", $print); #Is this right???
pack("b*",...) packs a "bit string", i.e. a string consisting of "0" and "1" (ASCII 48 and 49), e.g.
print pack("b*", "011001101111011011110110") # --> "foo"
but Postscript content doesn't consist of solely ASCII zeros and ones, so this is most likely not correct.
My guess would be that you don't need to do anything with $print. Just treat it as binary data (any string is "binary" in the wider sense, even if it's ASCII/7-bit only), i.e. use $print where you now have $binary.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: sql2008 Filestream
by ksublondie (Friar) on Mar 02, 2011 at 16:04 UTC | |
by Eliya (Vicar) on Mar 02, 2011 at 16:34 UTC |