![]() |
|
|
#1 |
|
Архивный участник
Join Date: May 2005
Posts: 89
|
Im have this code, but doesn't work in c3 cant see image
![]() Code:
$cmdSQL = mssql_query ("SELECT TOP 1 convert(image, bitmap) FROM Pledge_Crest WHERE crest_id = '" . $_GET["pledge"] . "' AND crest_id != '0'",$conn);
header("Content-type: image/jpeg");
echo mssql_result ($cmdSQL,0, 0);
|
|
|
|
|
#2 |
|
Архивный участник
Join Date: Apr 2005
Posts: 306
|
"convert(image, bitmap)" this must be a function ... do you have that function ?
|
|
|
|
|
#3 |
|
Архивный участник
Join Date: Feb 2005
Posts: 766
|
No its not a function, its an sql command. I have no idea why it doesnt work in c3 though.
|
|
|
|
|
#4 |
|
Архивный участник
Join Date: May 2005
Posts: 30
|
Try this:
[php:1:6298d7015f] echo pack('H*', substr(<data>, 2)); [/php:1:6298d7015f] And no JPEG. BMP or without header. |
|
|
|
|
#5 | |
|
Архивный участник
Join Date: May 2005
Posts: 89
|
i tried this:
Code:
$cmdSQL = mssql_query ("SELECT TOP 1 convert(image, bitmap) FROM Pledge_Crest WHERE crest_id = '" . $_GET["pledge"] . "' AND crest_id != '0'",$conn);
$dato = mssql_result ($cmdSQL,0, 0);
echo pack('H*', substr($dato, 2));
Quote:
|
|
|
|
|
|
#6 |
|
Архивный участник
Join Date: Apr 2005
Posts: 357
|
greate log! spammer
|
|
|
|
|
#7 | |
|
Архивный участник
Join Date: May 2005
Posts: 89
|
Quote:
|
|
|
|
|
|
#8 |
|
Архивный участник
Join Date: Feb 2005
Posts: 705
|
he said spam because is too large the log, the next time cut a little
|
|
|
|
|
#9 |
|
Архивный участник
Join Date: May 2005
Posts: 89
|
but maybe i did flood :?
|
|
|
|
|
#10 |
|
Архивный участник
Join Date: Apr 2005
Posts: 357
|
first 2-3 string of log enought, cuz all strings about the same
|
|
|
|
|