Connecting Tech Pros Worldwide Help | Site Map

how to write a code to retrieve the image (DataType) in the mssql

Newbie
 
Join Date: Nov 2006
Posts: 1
#1: Oct 18 '07
Do you know how to write a code to retrieve the image (DataType) in the mssql?
The image file is save in the desktop application, and now i need to do a web to display a image from mssql.
Did anyone know that?
TQ
ak1dnar's Avatar
Moderator
 
Join Date: Jan 2007
Location: Colombo
Posts: 1,439
#2: Oct 18 '07

re: how to write a code to retrieve the image (DataType) in the mssql


Quote:
The image file is save in the desktop application
Could you please explain it little bit clearly. from where you want to read the images. ?
Motoma's Avatar
Moderator
 
Join Date: Jan 2007
Location: Maine, USA
Posts: 2,904
#3: Oct 18 '07

re: how to write a code to retrieve the image (DataType) in the mssql


Quote:

Originally Posted by Leong

Do you know how to write a code to retrieve the image (DataType) in the mssql?
The image file is save in the desktop application, and now i need to do a web to display a image from mssql.
Did anyone know that?
TQ

I believe you will just run a header() call for the type of image it is, and then echo the data.
pbmods's Avatar
Site Moderator
 
Join Date: Apr 2007
Location: Texas
Posts: 5,435
#4: Oct 18 '07

re: how to write a code to retrieve the image (DataType) in the mssql


Heya, TQ. Welcome to TSDN!

To determine the type of an image file, use getimagesize() (I know it sounds kinda silly, but read about halfway down the page).
Reply