You have to include the JPEGLib
unit somewhere in your project, so that the JPEG graphic class gets registered.
uses
JPEGLib, // to support JPEG
PNGcomn, // to support PNG
httpsend;
response := TMemoryStream.Create;
try
if HttpGetBinary('http://www.example-url/example_image.jpg', response) then
begin
response.Seek( 0, soFromBeginning );
Image.Picture.LoadFromStream( response );
end;
finally
response.Free;
end;