Hi all!
When I am displaying a jpg or png file in my browser using the url path to the image it is fine. I can open and view a local image file through my browser just fine.
When I attempt to display a local image file veiwing a .web file, I get the typical image encoding. Not the rendered picture.
Is there a way to render the picture? Any suggestions is helpful.
WebOut( 'Content-type: text/html', 2) ; Output HTML Context type
WebOut( '<html> <head> <title>Display File Attachment Download</title> </head> <body>', 1)
WebOut("Server side image displays fine!<br>",1)
WebOut('<img alt="/webcgi/kb/pix/MyImage.jpg" height="80" SRC="/webcgi/kb/pix/MyImage.jpg" width="80" />',1)
WebOut("<br>",1)
USERNAME = ItemExtract(2,Environment("REMOTE_USER"),"\")
DefaultDownloadFolder=StrCat("C:\Users\",USERNAME,"\Documents")
WebOut("Client side image not pretty!<br><br>",1)
WebOut(StrCat(DefaultDownloadFolder,"\MyImage.jpg<br>"),1)
WebOutFile(StrCat(DefaultDownloadFolder,"\MrImage.jpg"))
WebOut('</body>',1)
WebOut('</html>',1)