php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #33196 cannot display JPEG from oracle db using oci8
Submitted: 2005-05-31 05:27 UTC Modified: 2005-05-31 07:17 UTC
From: tommy dot yan at hp dot com Assigned:
Status: Not a bug Package: OCI8 related
PHP Version: 4.3.9 OS: windows2000
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: tommy dot yan at hp dot com
New email:
PHP Version: OS:

 

 [2005-05-31 05:27 UTC] tommy dot yan at hp dot com
Description:
------------
cannot display the picture uploaded, only a 'cross' sign displayed.
I use apache 2.0.54, php 4.3.6, win2k, oracle 10g, ado 4.11. 

Reproduce code:
---------------
mainly part is here:
<?php
$db = myconnect();
$rs=$db->Execute("SELECT BLOBDATA FROM BTAB WHERE BLOBID =".$id);
print "id=".$id;
header("Content-type: image/JPEG");
$row = $rs->FetchRow();
print $row[0];
?>
PLEASE SEE http://forums.oracle.com/forums/thread.jsp?forum=178&thread=233174&message=664237#664237  BOTTOM MESSAGE.

Expected result:
----------------
jpeg display normally

Actual result:
--------------
a 'cross sign' is displayed. if SQL debugging is enabled, a lot of wrong character is displayed.

Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2005-05-31 07:17 UTC] pajoye@php.net
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to report
a bug at http://bugs.php.net/how-to-report.php

Do not print out any chararter while trying to display an image.
 
PHP Copyright © 2001-2025 The PHP Group
All rights reserved.
Last updated: Wed Feb 05 14:01:32 2025 UTC