| | |
PhP Image help
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
•
•
Join Date: May 2008
Posts: 3
Reputation:
Solved Threads: 1
Hello all,
I have been working on a simple web app but have run into a small problem. I am still fairly new to php and have found nothing on this topic searching google. I have a getimage.php page that fetches an image from a SQL Server Express 2005 database. It seems to run fine, but when it pulls a picture, only about 1/3rd of the top is displayed. My for the getimage.php is below:
I'm hoping that it is a simple noobie mistake. Any help is greatly appreciated and thanks in advance.
I have been working on a simple web app but have run into a small problem. I am still fairly new to php and have found nothing on this topic searching google. I have a getimage.php page that fetches an image from a SQL Server Express 2005 database. It seems to run fine, but when it pulls a picture, only about 1/3rd of the top is displayed. My for the getimage.php is below:
PHP Syntax (Toggle Plain Text)
$query = "SELECT INMPICTURE FROM inmates WHERE BOOKNO = '$id'"; $result = mssql_query($query); $data = mssql_result($result,0,"INMPICTURE"); header("Content-type: image/jpeg"); echo $data;
I'm hoping that it is a simple noobie mistake. Any help is greatly appreciated and thanks in advance.
•
•
Join Date: May 2008
Posts: 3
Reputation:
Solved Threads: 1
After much frustration I finally figured out what I had overlooked. In order to see the entire image I just had to go into the php.ini and increase the value for the mssql.textlimit and mssql.textsize. I'm not sure if I had to do both or not, but it is working perfectly now.
Hopefully someone else can bypass my mistake through this post
Hopefully someone else can bypass my mistake through this post
![]() |
Similar Threads
- Sending pic attachments via PHP form (PHP)
- Image Resize (Graphics and Multimedia)
- php 4.3.3 and gd (PHP)
- Image Resize Function Error (PHP)
- PHP image resize issue. (PHP)
- php image resize quality (PHP)
- PHP image swapping ? (PHP)
Other Threads in the PHP Forum
- Previous Thread: modify headers
- Next Thread: jpgraph+hyperlink
| Thread Tools | Search this Thread |
Tag cloud for PHP
.htaccess access address ajax apache api array autoincrement beginner binary broken cakephp checkbox class cms code cron curl database date dehasher directory display download dynamic echo email error external file files folder form forms function functions google href htaccess html image include insert integration ip java javascript joomla limit link login loop mail menu method methods mlm mod_rewrite multiple mysql oop parse paypal pdf php problem query question radio random recursion regex remote script search server sessions shopping sms soap source space speed sql structure support! syntax system table tutorial update upload url validation validator variable video web xml youtube





