Binary numbers are challenging for humans to read and write due to the vast number of digital and comparable decimal values. Make sure there is no newline after the ?> in chart.php. Coding is made easier by the Binary Number System, which leads to fewer calculations and fewer mistakes in computation. There is a missing in your html, but that is not the reason for your problem.
Is the value of the alt attribute output where the image should have been? No, still nothing, but it displays 'chart data' thanks to the alt tagĬhange your tag, include an alt attribute. echo is_base64_encoded($channel _ChartImag e) ? When I ran the function preg_match I get "This is a valid base64 string" => so that is good The following in IE7: Warning: Cannot modify header information - headers already sent by (output started at E:\XAMPP\htdocs\aeroplan\g a\pages\in vQuote.php :8) in E:\XAMPP\htdocs\aeroplan\g a\stock\ch art.php on line 1 Warning: Cannot modify header information - headers already sent by (output started at E:\XAMPP\htdocs\aeroplan\g a\pages\in vQuote.php :8) in E:\XAMPP\htdocs\aeroplan\g a\stock\ch art.php on line 1 The output on the browser is the following: $image_64 = base64_decode($channel_Cha rtImage) If I decode the binary data I still do not get a picture:ĦnfvmXtlf9pcPyAc+ xgc+RlF9bkKfm5APyAfkA1f7wP 8H9aWOxVfj Z80AAAAASU VORK5CYII= $channel_ChartImage = value_in('ChartImage', $xml) Return $matches //return the full pattern match Return $matches //ignore the enclosing tags Mainpage.php (I have included 3 versions of trying to embed the data the third one -include- returns binary data-) Question: Would your code "translate" the binary data to png? The closest I have come to displaying it is to show a series of binary data on the browser: It returns an XML file where the tag ChartImage contains a png image.
I am accessing a URL: (username & password needed) I am building a website for a corporation that would like to display a stock chart on one of its pages.