hi.
I had a format error loading a network image using idhttp
procedure TForm1.Button1Click(Sender: TObject);
var
imagestream:TMemoryStream;
jpg:TJpegImage;
begin
imagestream := TMemoryStream.Create();
jpg:=TJpegImage.Create;
idhttp1.Get('https://p1.music.126.net/8W5e0ZO7lFS-HtXEEi_HzQ==/109951164582961512.jpg',imagestream);
imagestream.Position:=0;
jpg.LoadFromStream(imagestream);
image1.Picture.Assign(jpg);
end;
If you change the URL to another, it will display normally
I've browsed the relevant solutions, but I still can't solve it