Click here to Skip to main content
15,886,199 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have retrieved the image from the database using php.When i retrieve and display the pic,certain pics and only half in size.The image is not display its entire size and width.http://postimg.org/image/hhgffma09/[^]

Please help me out .thank you
Posted
Comments
Garth J Lancaster 22-Feb-14 20:04pm    
given you don't show any code, how can we help you ?

I suggest you update your question with the code, both for saving and fetching an image, and, the table definition for the MySQL table (hint, use 'describe <tablename>' - from a recent exercise, if you're not saving an image correctly in the appropriate sized 'blob', you cant expect to get it back
EZW 22-Feb-14 21:29pm    
Does your IMG tag (<img src="... ) have any styling to it defining width or height? This looks like an HTML/CSS problem rather then PHP... but can't tell without any code
abisheak Balaji 22-Feb-14 21:45pm    
no,I haven't specificed any width and height attribute in IMG src element.
I used MySQL workbench to insert
the data into the database.
I'll update the table definition once I
login to my system.

1 solution

Thanks guys, Solved it myself.Had to change Blob to LongBlob though i put too much weight on database.Uploaded the pics again and works great.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900