Hello Team.

Last week we had a discussion in Yammer about uploading pictures to Item record from URL and in the result I wrote next code. Hope it will be useful for somebody:

    procedure UploadItemPicture(ItemNo: Code[20]; PictureURL: Text)
    var
        Item: Record Item;
        Client: HttpClient;
        Response: HttpResponseMessage;
        InStr: InStream;
    begin
        Client.Get(PictureURL, Response);
        Response.Content().ReadAs(InStr);
        Item.Get(ItemNo);
        Item.Picture.ImportStream(InStr, 'Picture From URL');
        Item.Modify();
    end;