Hi all,
And what a first post hey! I've searched high and low for the answer to this, tried all the newsgroups and asking in #php but to no avail, so hopefully some bright spark here can help.
For various reasons i'm using PHP with ADO to connect to MS SQL 2000 (mostly because it's the best way to do it for me since I have a load of stored procedures with out parameters).
Anyway, everything works a treat, I can call SP's, get out params, call SQL statements, everything happy as larry... except... BLOBS!!
I've managed to get my BLOB field back, that's no problem. What my issue is is getting PHP to display it (trying to show it as a gfx).
I've managed to read the blob using .GetChunk from ADO and the size of the chunk is fine
i.e count($arrBytes) is the size of the image
however!! how do I get this to the user? When I try printing it, all I get is decimal numbers which isn't right. When I try implode it gets even weirder and PHP seems to change the size (strlen($imploded) = 1194!!!!
ANyone help here at all? I've tried using ADO.Stream too but it fails when I pass it the blob field for stream->Write
Thanks in advance, there's a big beer in it for whoever solves this one!!