delphi - IDHTTPServer: In FireMonkey, how to I serve images from within the app as web images? -


idhttpserver: in firemonkey, how serve images within app web images?

for example: works images stored in filestructure. don't want have save images file structure before serving them. appreciated.

you don't need physical file on filesystem. in oncommand... handler, create instance of suitable tstream hold image data, tmemorystream, , assign aresponseinfo.contentstream property. , assign aresponseinfo.contenttype property describe type of data sending, image/png, image/jpeg, etc.


Comments