Hi Guys,<BR><BR>I've recently had the luck of being offered paid for banner ad's which means that I have to change or COM/asp system to the typical more generic/plain html banner systems where you have your page (lets call it view.htm) and insert the banner by adding the code <img src=http://aspmessageboard.com/archive/index.php/"http://blah.com/bannerserv.aspx"> to view.htm<BR><BR>In its absoulte simplest and pretty unusable form bannerserv.aspx contains:<BR><%@ Page Language="VB" ContentType="image/jpeg"%><BR><% BannerFile = "test.gif" <BR>Response.writefile(BannerFile) %><BR><BR>That has the effect of writing the gif file out and all is groovy with view.htm showing whatever gif is specified in bannerserv.aspx.<BR><BR>The above is not v. usable as it has no logic. So... when I start importing namespaces for databases eg: <BR><%@Import Namespace="system.data"%><BR>the content type is obviosuly affected because view.htm now doesnt display the gif file, and I can't continue!<BR><BR>Anybody know what I'm doing wrong and how I can get around it?<BR><BR>Thanks,<BR>Anton<BR>Your image may not be viewing b/c you may have errors in your bannerserv.aspx page. Take out the ContentType setting there, and don't worry about sending the file. First make sure the page's logic works.Thanks! You put me in the right direction. For some reason importing the namespaces was adding 2k to what was being out put - adding a couple of blank lines before the raw gif data, so all I did was add a response.clear to remove any junk before outputting the raw data.<BR><BR>Rgs,<BR>Anton