Sub btnGet_Click (Params As Map) 'When the display image button is clicked.....
Dim ft1 As Future = text1.GetVal 'Get the text box value
Result.SetText("Getting photo : " & (ft1.Value)) 'Set the result param (a label) to "Getting Photo: " + whatever was typed
Dim ext As String = GetExtension(ft1.Value) 'Find the file extension (probably .jpg)
File.Copy("/home/domain/fdata/FileManager/photostore/", ft1.Value & ext, "/home/domain/lightapp.domain.co.uk/www/temp/", ft1.Value & ext)
Dim img As String = "<img src=""/temp/" & ft1.Value & ext & """ alt="""" width=""1200"" height=""800""> " 'Build an img html tag
Log ("img = " & img)
ImageToShow.Sethtml (img) 'Set the tag in the html code to our new one
Log ("Image Set")
End Sub