{"id":2327,"date":"2005-08-03T17:52:00","date_gmt":"2005-08-03T07:52:00","guid":{"rendered":"http:\/\/new.radio-active.net.au\/web3\/gibberish\/"},"modified":"2014-10-10T13:08:41","modified_gmt":"2014-10-10T02:08:41","slug":"gibberish","status":"publish","type":"post","link":"http:\/\/www.radio-active.net.au\/web3\/2327","title":{"rendered":"Gibberish&#8230;"},"content":{"rendered":"<p>I am having a problem with programming. I am attempting to work with a WWW page sending a file &#8211; in this case a PNG image. What is happening is that I am getting Gibberish. What I am seeing appears below.<\/p>\n<p><tt>content-disposition: attachment; filename=00000100040040034000000S151000000E33000000S152000000E.png Set-Cookie: ASP.NET_SessionId=2bhvqu550yzjaq3tjsokwx45; path=\/ Cache-Control: private Expires: Wed, 03 Aug 2005 01:20:13 GMT Content-Type: imagepng Content-Length: 32772 \u2030PNG <br \/>akY *&# ( ID()*&*(^&%()*(&^^&%^*(*)(*&***& B*(&*%#$756%^&6767((*78 &&** 89&*&6^^7_*^&&b8(&*&**(&* *&755$&789*^*&9)*98^&*^8**(5^&%678788998908678&(**()78jhyut^&6Uj89^BU<\/tt><\/p>\n<p>This of course makes no sense. Except for the fact that it is the start of a PNG file, as text. This should not happen like this. Some of the time it just displays in a WWW browser. Most of the time it does not. <\/p>\n<p>The code I am using is under VB.NET and is little more than<br \/>   Page.Response.WriteFile(&#8220;c:junk.txt&#8221;)<\/p>\n<p>I just cannot work it out. I have put in an email to Microsoft to see if I can get some answers there&#8230;<\/p>\n<p>The code I am using is basically&#8230;<\/p>\n<p>        Page.Response.ContentType = &#8220;image&#8221; &#038; extension<br \/>        Response.AppendHeader(&#8220;content-disposition&#8221;, &#8220;attachment; filename=&#8221; + mc.Filename &#038; &#8220;.&#8221; &#038; extension.ToString)<br \/>        Page.Response.End()<br \/>        Page.Response.AddHeader(&#8220;Pragma&#8221;, &#8220;no-cache&#8221; &#038; vbCrLf)<br \/>        Page.Response.Expires = -1<\/p>\n<p>Any hints or ideas?<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I am having a problem with programming. I am attempting to work with a WWW page sending a file &#8211; in this case a PNG image. What is happening is that I am getting Gibberish. What I am seeing appears &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"more-link\" href=\"http:\/\/www.radio-active.net.au\/web3\/2327\"> <span class=\"screen-reader-text\">Gibberish&#8230;<\/span> Read More &raquo;<\/a><\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":{"image_generator_settings":{"template":"highway","enabled":false}}},"categories":[],"tags":[],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack_shortlink":"https:\/\/wp.me\/p5cfmK-Bx","_links":{"self":[{"href":"http:\/\/www.radio-active.net.au\/web3\/wp-json\/wp\/v2\/posts\/2327"}],"collection":[{"href":"http:\/\/www.radio-active.net.au\/web3\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.radio-active.net.au\/web3\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.radio-active.net.au\/web3\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"http:\/\/www.radio-active.net.au\/web3\/wp-json\/wp\/v2\/comments?post=2327"}],"version-history":[{"count":0,"href":"http:\/\/www.radio-active.net.au\/web3\/wp-json\/wp\/v2\/posts\/2327\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.radio-active.net.au\/web3\/wp-json\/wp\/v2\/media?parent=2327"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.radio-active.net.au\/web3\/wp-json\/wp\/v2\/categories?post=2327"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.radio-active.net.au\/web3\/wp-json\/wp\/v2\/tags?post=2327"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}