Yes, it needs to be one long line of chars, no line breaks in it at all.

Can you post up a zip file containing a simple sample application that shows the problem? That would make this much easier to try and debug, simply make it a single form that calls the loading method and then draws the map to a TImage (once). This way we can quickly look and see what you may or may not be doing wrong