Lid | 
                         | 
                        o daar  
 
gevalletje goedemorgen zeg sorry  
 
 
Momenteel heb ik dit probleem al opgelost. 
 
Omdat het een plaatje is moet je het binair lezen en dus opslaan in een Byte array en vervolgens als bytes versturen naar de streamwriter. 
 
    
    
        
            
                
                    string filename = p.http_url.Substring(p.http_url.LastIndexOf("/"));
                    p.writeImageHeader(Environment.CurrentDirectory + "/httdocs" + p.http_url, filename);
                    byte[] fileBytes = File.ReadAllBytes(Environment.CurrentDirectory + "/httdocs/" + p.http_url);
                    foreach (byte b in fileBytes)
                    {
                        p.outputStream.BaseStream.WriteByte(b);
                    }
             
            string filename = p.http_url.Substring(p.http_url.LastIndexOf("/"));                     p.writeImageHeader(Environment.CurrentDirectory + "/httdocs" + p.http_url, filename);                       byte[] fileBytes = File.ReadAllBytes(Environment.CurrentDirectory + "/httdocs/" + p.http_url);                       foreach (byte b in fileBytes)                     {                         p.outputStream.BaseStream.WriteByte(b);                     } 
 
  
         
          
     
  
 
Deze code werkt nu wel met de boven al eerder getoonde header's |