Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
[COLOR=blue]Sub[/color] SavePicture(iPeopleID)
[COLOR=blue]Dim[/color] rs, stmStream, sFileName, sSQL
sFileName = "D:\Uploaded_Signatures\Signature_" & iPeopleID & ".gif"
[COLOR=blue]Dim[/color] cn
[COLOR=blue]Set[/color] cn = Server.[COLOR=blue]CreateObject[/color]("ADODB.Connection")
cn.Provider = "sqloledb"
cn.Open(strConn)
[COLOR=blue]Set[/color] rs = Server.[COLOR=blue]CreateObject[/color]("ADODB.Recordset")
sSQL = "SELECT blobSignature From People WHERE iPeopleID = " & iPeopleID
rs.Open sSQL, cn, adOpenKeyset, adLockOptimistic, adCmdText
[COLOR=blue]Set[/color] stmStream = [COLOR=blue]CreateObject[/color]("ADODB.Stream")
stmStream.Type = 1 'adTypeBinary
stmStream.Open
stmStream.LoadFromFile sFileName
rs.Fields("blobSignature").Value = stmStream.Read
rs.Update
rs.Close
[COLOR=blue]Set[/color] rs = [COLOR=blue]Nothing[/color]
stmStream.Close
[COLOR=blue]Set[/color] stmStream = [COLOR=blue]Nothing[/color]
cn.Close
[COLOR=blue]Set[/color] cn = [COLOR=blue]Nothing[/color]
[COLOR=blue]Kill[/color] sFileName
[COLOR=blue]End Sub[/color]