close ad
Databridge V2 with MySQLi support IS Now Available!
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

Display JPG stored in MySQL Binary record

Thread began 2/11/2010 1:12 pm by tom92909 | Last modified 2/11/2010 4:26 pm by tom92909 | 1855 views | 5 replies

tom92909Beta Tester

Display JPG stored in MySQL Binary record

I have successfully stored a standard JPG photograph in MySQL using a simple DA insert page. The Photofile field structure is setup as ( longblob, BINARY ).

Now I'd like to recall that file and display this image as desired.

How is the <img> operation accomplished?

<table class="WADAResultsTable" border="0" cellpadding="0" cellspacing="0">

                  <th class="WADAResultsTableHeader">Date:</th>
                  <th class="WADAResultsTableHeader">Description:</th>
                  <th class="WADAResultsTableHeader">Filename:</th>
                  <th class="WADAResultsTableHeader">&nbsp;</th>                  
                <?php do { ?>
                  <tr class="<?php echo $WARRT_AltClass1->getClass(true); ?>">
                    <td class="WADAResultsTableCell"><a href=""></a><?php echo($row_WADAfiles['Date']); ?></td>
                    <td class="WADAResultsTableCell"><?php echo($row_WADAfiles['Description']); ?></td>
                    <td class="WADAResultsTableCell"><?php echo $row_WADAfiles['Photofile']; ?></td>
                    <td class="WADAResultsTableCell"><a href="<?php echo $row_WADAfiles['Photofile']; ?>"><img  src="images/mini_info.png" border="0" /></a></td>                    
                  <?php } while ($row_WADAfiles mysql_fetch_assoc($WADAfiles)); ?>

I'm getting the following error...

The requested URL /102_2575.JPG was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Thanks in advance.

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question





Ease of use


security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...