locked
Really Confused with Flickr RRS feed

  • Question

  • Here is some code i am confused on. (How does Flickr work in SB?)


    pic=flickr.GetRandomPicture("puppy")
    GraphicsWindow.DrawImage(pic,30,30)


    (This is my code... probably doing it wrong)

    Friday, May 10, 2013 8:14 PM

Answers

  • Your code works fine for me, you need internet access of course.

    Friday, May 10, 2013 8:59 PM
  • Perhaps there is some reason why your PC internet cannot connect to Flickr directly, firewall, proxy setting etc?

    Try this:

    pic=flickr.GetRandomPicture("puppy")
    TextWindow.WriteLine(pic)

    Should print the net image file to be downloaded.

    Flickr or downloading an image could be slow so there may be a timeout?

    Also try this:

    pic = ImageList.LoadImage(flickr.GetRandomPicture("puppy"))
    GraphicsWindow.DrawImage(pic,0,0)

    Friday, May 10, 2013 9:34 PM

All replies

  • Your code works fine for me, you need internet access of course.

    Friday, May 10, 2013 8:59 PM
  • it doesnt work for me. my computer delays (as if it would start the prog, but then just goes back to SB)
    Friday, May 10, 2013 9:22 PM
  • Perhaps there is some reason why your PC internet cannot connect to Flickr directly, firewall, proxy setting etc?

    Try this:

    pic=flickr.GetRandomPicture("puppy")
    TextWindow.WriteLine(pic)

    Should print the net image file to be downloaded.

    Flickr or downloading an image could be slow so there may be a timeout?

    Also try this:

    pic = ImageList.LoadImage(flickr.GetRandomPicture("puppy"))
    GraphicsWindow.DrawImage(pic,0,0)

    Friday, May 10, 2013 9:34 PM
  • Oh, yeah, I have Flickr blocked on trend AntiVirus... Thanks:)
    Friday, May 10, 2013 9:46 PM