Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » Elevate Web Builder Technical Support » Support Forums » Elevate Web Builder General » View Thread |
Messages 1 to 1 of 1 total |
Request image from module |
Fri, Dec 27 2019 12:43 AM | Permanent Link |
KimHJ Comca Systems, Inc | Does anyone have an example how to request an image from the web serve module and send it back to a TImage.
I have a form with a TImage and I need to display a current Image. The database have the location of the image on the server. like: 'C:\myimages\images.png Can I use the same method as the PDF example and add this or do I need to use the TPlugin? TImage.URL := 'modules/pdfmodule?user=Demo&password=Password'+ '&method=load&name='+"C:\myimages\images.png"; and this in the module: if FileExists(TempFileName) then begin TempFileStream:=TFileStream.Create(TempFileName,(fmOpenRead or fmShareDenyNone)); try Request.SendCustomContentStream(TempFileStream,'application/image/png','inline; filename="'+TempRootFileName+'"'); finally FreeAndNil(TempFileStream); end; Thanks, Kim |
This web page was last updated on Monday, January 20, 2025 at 05:58 AM | Privacy PolicySite Map © 2025 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |