<html>
<head>
<style>
P
{
margin:0px;
padding:0px
}
body
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body><BR>Hi ...<BR>
<BR>
To make WaCachedDocument work for image-files in the seaside version that came with visualworks, I had to change SeasidePlatformSupport>>mimeDocumentOfType:from: as follows<BR>
<BR>
mimeDocumentOfType: type from: aString <BR> | mimeType aFilename |<BR> aFilename := aString asFilename.<BR> mimeType := type <BR> ifNil: [Net.MimeTypeDescriptor mimeTypeForFile: aFilename].<BR> mimeType isImageType <BR> ifTrue: <BR> [^self mimeDocumentClass contentType: mimeType<BR> content: (ImageReader fromFile: aFilename) image <BR> asGIFNonTransparent gifBytes].<BR> ^self mimeDocumentClass contentType: mimeType<BR> content: aFilename readStream upToEnd<BR>
<BR>
where the method isImageType does the obvious. This did the trick for me. Maybe there are better solutions<BR>
<BR>
regards,<BR>
Eugene<BR><br /><hr />Zeg meteen wat je denkt met Windows Live Messenger! <a href='http://imagine-msn.com/messenger/launch80/default.aspx?locale=nl-nl&source=joinmsncom/messenger' target='_new'>Windows Live Messenger!</a></body>
</html>