<html>
<head>
<style>
P
{
margin:0px;
padding:0px
}
body
{
FONT-SIZE: 10pt;
FONT-FAMILY:Tahoma
}
</style>
</head>
<body><BR>Hi ...<BR>
&nbsp;<BR>
To make WaCachedDocument&nbsp;work for image-files in the seaside version that came with visualworks, I had to change SeasidePlatformSupport&gt;&gt;mimeDocumentOfType:from: as follows<BR>
&nbsp;<BR>
mimeDocumentOfType: type from: aString&nbsp;<BR>&nbsp;| mimeType aFilename |<BR>&nbsp;aFilename := aString asFilename.<BR>&nbsp;mimeType := type <BR>&nbsp;&nbsp;&nbsp;&nbsp;ifNil: [Net.MimeTypeDescriptor mimeTypeForFile: aFilename].<BR>&nbsp;mimeType isImageType <BR>&nbsp;&nbsp;ifTrue: <BR>&nbsp;&nbsp;&nbsp;[^self mimeDocumentClass contentType: mimeType<BR>&nbsp;&nbsp;&nbsp;&nbsp;content: (ImageReader fromFile: aFilename) image <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;asGIFNonTransparent gifBytes].<BR>&nbsp;^self mimeDocumentClass contentType: mimeType<BR>&nbsp;&nbsp;content: aFilename readStream upToEnd<BR>
&nbsp;<BR>
where the method isImageType does the obvious. This did the trick for me. Maybe there are better solutions<BR>
&nbsp;<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>