none
picture from flicr RRS feed

Answers

All replies

  • #metoo

    All the images from Flickr.GetPictureOfMoment() and .GetRandomPicture("whateva") appear as 0-byte files in %temp%\tmp????.tmp

    W/O previous use of LDUtilities.FixFlickr().

    Seems they again changed some access urls.

    Saturday, July 6, 2019 12:42 PM
    Answerer
  • Looks like the dowloading part in SB is the issue this time.

    The following works for me, let me know if there are still issue here and I will try to fix in LD extension.

    flickr = LDUtilities.FixFlickr()

    imageURL = Flickr.GetRandomPicture("Car")
    tmpFile = File.GetTemporaryFilePath()
    LDNetwork.DownloadFile(tmpFile,imageURL)
    image = ImageList.LoadImage(tmpFile)
    File.DeleteFile(tmpFile)

    GraphicsWindow.DrawResizedImage(image,0,0,GraphicsWindow.Width,GraphicsWindow.Height)

    Thursday, July 11, 2019 6:25 PM
    Moderator
  • With the normal download of the LitDev extension you get the version 1.2.21.0

    The latest Flickr update is only in beta version 1.2.22.0


    LitDev, can you please increase the version soon?

    Many Thanks

    Thursday, July 11, 2019 9:04 PM
  • Thanks, I forgot this was only in beta.

    New version created.

    Thursday, July 11, 2019 9:54 PM
    Moderator
  • Final comment.

    As spotted by Pappa Lapub, it seems that currently FixFlickr is NOT needed, rather just the LDNetwork download part.

    tmpFile = File.GetTemporaryFilePath()
    
    imageURL = Flickr.GetRandomPicture("Car")
    LDNetwork.DownloadFile(tmpFile,imageURL)
    image = ImageList.LoadImage(tmpFile)
    
    File.DeleteFile(tmpFile)
    
    GraphicsWindow.DrawResizedImage(image,0,0,GraphicsWindow.Width,GraphicsWindow.Height)


    Monday, July 15, 2019 6:52 PM
    Moderator