2
Q
火鸟上的斑点图像
A
回答
4
PHP样品(PHP5,InterBase和PHP5-GD模块所需)
require("db.php"); require("class.image.php"); header("Content-type: image/jpeg"); $db = db_connect(); $id_s = intval($_GET["id"]); $id=intval($id_s); // $q = ibase_query($db ,"select ITEMPICS_BODY from ITEMPICS where ITEMPICS_ID = $id"); $row=ibase_fetch_object($q); $blob_data = ibase_blob_info($row->ITEMPICS_BODY); $blob_hndl = ibase_blob_open($row->ITEMPICS_BODY); $bl = ibase_blob_get($blob_hndl, $blob_data[0]); ibase_free_result($q); $w = 640; $h = 640; $filename = $bl ? dirname(__FILE__)."/img/product__$id.jpg" : dirname(__FILE__)."/img/no_pic.jpg"; if ($bl) fwrite(fopen($filename, 'w'), $bl); $img = new Image($filename); $img->resize($w, $h, 1, 0); $img->toBrowser(); if ($bl) @unlink($filename);
相关问题
- 1. 需要比较火鸟中的斑点
- 2. SQLite的图像斑点串
- 3. 在图像上只发现大斑点
- 4. 显示斑点图像 - symfony
- 5. Angularjs显示图像斑点
- 6. 不显示斑点图像
- 7. 斑马线onActivityResults不点火
- 8. 火鸟 - 自上一个表
- 9. 检测图像上彩色斑点的触摸(位图)
- 10. FF中的Javascript图像替换斑点
- 11. 检测图像中的颜色斑点
- 12. 图像类型的斑点存储
- 13. 报告标题处的斑点图像
- 14. 查找图像中的最大斑点
- 15. 图像中央斑点的选择
- 16. 斑点为base64类型的图像/ WEBP
- 17. base64转换的data:URL图像斑点
- 18. Python的硒:火狐neverAsk.saveToDisk从斑点URL
- 19. 上斑点
- 20. 与QR码图像内的“白色斑点”处理斑马线
- 21. 火鸟别名
- 22. 火鸟组
- 23. 火鸟SqlConnection
- 24. 错误火鸟
- 25. 如果火鸟
- 26. 火鸟例外
- 27. 如何火鸟
- 28. 火鸟的if else
- 29. 更换背景图像与斑点:URL
- 30. 显示图像 - 斑点 - 不正确
要插入或找回? – EMBarbosa 2012-03-29 02:10:48