GLBasic forum

Main forum => GLBasic - en => Topic started by: BasicMe on 2011-Feb-12

Title: Display image from internet?
Post by: BasicMe on 2011-Feb-12
If I have a link to a JPEG on the web, is it possible to display it in a GLBasic program?

I want to access and display the latest images & text from an online gallery.  I'm able to access a list of their latest files from their XML feed, and grab all the text using NETWEBGET.  But I'm stumped on the images.  Is this something that's possible?
Title: Re: Display image from internet?
Post by: Moebius on 2011-Feb-12
If you don't want to decode the jpeg in your code and use MEM2SPRITE, the easiest solution is to save the image as "*.jpg", then use LOADSPRITE...
If you do it this way also, you could make it so your program only downloads the image when it needs to (you can specify a file version or something in the XML feed so it doesn't redownload if the image hasn't changed).
Title: Re: Display image from internet?
Post by: Ian Price on 2011-Feb-12
JPEGs are very buggy in GLBasic - loading and/or using them causes erratic problems.