Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Handling a database image field with vbscript 1

Status
Not open for further replies.

Santie

Technical User
Jul 20, 2002
4
ZA
Please help! How do you read a MSSQL image field with VBScript and display it in your Webbrowser?
 
I created a ActiveX control button in VB design that uses a shell command to load the image with wangimg.exe given the image path
You pass the image path to the activex control by

HTML/VBScript:
call ctrlImager.Get_File(Image_File)

'ctrlImager is your object ID
'Get_File is the function in the control
'Image_File is your image path

The control:

Public Function Get_File(inFilename As Variant)
Image_File = inFilename
End Function

Private Sub cmdImager_Click()
Image_location = "C:\Program Files\Windows NT\Accessories\ImageVue\wangimg.exe"

Shell_Command = Image_Location & " " & Image_File

End Sub

Don't forget to register your control locally
 
Thank you Jon, I thinhk your proposal will do the job.

Santie
 
Jon

The images on the database was stored from bitmaps. The 'HOWTO: Display Images Stored in a BLOB Field' handled images that is stored from gif & jpeg images.

Santie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top