•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 373,191 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,844 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 206 | Replies: 1 | Solved
![]() |
•
•
Join Date: May 2008
Posts: 3
Reputation:
Rep Power: 0
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:
$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:
Rep Power: 0
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
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
- 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


Linear Mode