|  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #13133 Get longbinary data from ACCESS
Submitted: 2001-09-04 11:08 UTC Modified: 2002-05-13 18:50 UTC
From: rossati at libero dot it Assigned:
Status: Not a bug Package: ODBC related
PHP Version: 4.0.4pl1 OS: W98 ME
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 this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Bug Type:
From: rossati at libero dot it
New email:
PHP Version: OS:


 [2001-09-04 11:08 UTC] rossati at libero dot it
LongBinary data from ACCESS.
I receive 2 bytes for every byte of data, one is &h00. 
      $SceltaOggetto = "GIRASOLE";
      $Where = "NCTN = '".$SceltaOggetto."'";
      // cerco immagine ed eventualmente la scrivo
      if (odbc_fetch_row ($resImg) == TRUE):
      odbc_binmode ($resImg,ODBC_BINMODE_PASSTHRU);
      $Dimensione = odbc_result($resImg,2); // ll immagine
      echo "<BR>Dimensione: ".$Dimensione."<BR>";
        $NomeFile = $SceltaOggetto.".jpg";
        unlink($NomeFile);  // scancello
        if (file_exists($NomeFile) == FALSE):
          odbc_longreadlen ($resImg,$Dimensione);
          $graf = odbc_result($resImg,1);
          echo "Lungore ".strlen($graf);
          $fp = fopen ($NomeFile, "wb");
          echo "<BR>ECHO<BR><BR>".$graf;


Add a Patch

Pull Requests

Add a Pull Request


AllCommentsChangesGit/SVN commitsRelated reports
 [2002-05-13 18:50 UTC]
Thank you for taking the time to report a problem with PHP.
Unfortunately your version of PHP is too old -- the problem
might already be fixed. Please download a new PHP
version from

If you are able to reproduce the bug with one of the latest
versions of PHP, please change the PHP version on this bug report
to the version you tested and change the status back to "Open".
Again, thank you for your continued support of PHP.

PHP Copyright © 2001-2023 The PHP Group
All rights reserved.
Last updated: Wed Feb 01 10:03:45 2023 UTC