[phorm] [Phorm:] Trying to call JPG from database

  • From: webbbs@xxxxxxxxx
  • To: support@xxxxxxxxx
  • Date: 8 Mar 2003 03:36:31 -0000

The following new message has been posted on Phorm Support Forum at 
<http://www.phorm.com/support/>. 

*************************************************************************** 

  MESSAGE:  (#2365) Trying to call JPG from database 
            <http://www.phorm.com/support/?rev=2365> 
  AUTHOR:   Rich 
  DATE:     March 7, 2003 at 10:36 p.m. EST 

Hi, 

I am trying to call JPG's from the MySQL database and I can't seem to get it 
to do it with Phorm. I have the JPG as *blob* in the dbase. I am using a PHP 
page and below is what I have. *db_bin_data* is where the binary code for the 
JPG is in the table. When it gets to the ack page, all I get is the actual 
binary data (mish-mosh) instead of the actual JPG. Can you please shed some 
light on this. Thanks...Rich 

<?php 
if ($db_filename == "2002a.JPG"){ 
echo '<p>{{db_bin_data}}</p>'; 
} 
?> 

*************************************************************************** 

This is an automatically-generated notice.  If you'd like to be removed from 
the mailing list, please visit Phorm Support Forum at 
<http://www.phorm.com/support/>, or send your request to webbbs@xxxxxxxxxx  If 
you wish to respond to this message, please post your response directly to the 
board.  Thank you! 
-------------------------------------------------
You are receiving this message because you are subscribed to the Phorm mailing 
list. To send messages to the mailing list, simply send email to 
phorm@xxxxxxxxxxxxx from the address you have subscribed. You may unsubscribe 
from the list by sending email to phorm-request@xxxxxxxxxxxxx with 
'unsubscribe' in the SUBJECT field.

Other related posts:

  • » [phorm] [Phorm:] Trying to call JPG from database