metro
Full Member
 
Posts: 179
|
Post by metro on Sept 6, 2015 0:39:51 GMT -5
Back for some help, I have a Liberty Basic program that displays charts from Yahoo finance via the Yahoo API httpget works fine in LB, I can display the downloaded image in a graphic box with no issues. I don't understand why the "png" image will not display in RB using the same code how ever the file downloaded using LB4.50 will render when opened within RB I have concluded the RB "saved" file gets corrupted some how any help appreciated urlfile$ = "http://chart.finance.yahoo.com/z?s=NAB.AX&t=1y&q=l&l=on&z=l&p=m10,m50,v&a=r14" page$=HTTPGET$(urlfile$)
open "pic.png" for output as #1 print #1, page$ close #1
loadgraphic #picture, "pic.png" render #picture SOLVED: opened the file for binary did the trick  lot to learn
|
|
|
Post by StefanPendl on Sept 8, 2015 17:01:56 GMT -5
An image is always a binary file  Generally all files can be saved using the binary file type without data corruption.
|
|