I'm working on migrating a website from an external server (running Apache) to a local server (running IIS), and have come across an issue that I can't seem to resolve.
The site is using a custom Joomla plugin that grabs some graphics stored in a mysql database (for e.g. http://www.norfolktourism.ca/index.php?option=com_bdirectory&task=image&cid=191). However, when I migrate the site to the local server, the images are broken.
Upon further exploration, I've discovered that somehow, when ran on the local server, their seems to be whitespace (as in a new line) that gets processed before the header() function is processed, hence breaking the image (however, I don't get an error - just a broken image).
I'm absolutely baffled as to what the issue may be, as the code works fine on the external Apache server.
Would anyone have any suggestions on possible resolutions?