Problems with Embedded images
John Borden
jborden23 at mac.com
Tue May 10 04:24:55 MEST 2005
Dan,
I'd reccommend making ByteString>>squeakToIso, which would retrun "self
asString". I'd added this to Smallwiki.tar.gz in
http://homepage.mac.com/jborden23/FileSharing3.html (where I think you
downloaded it before).
Thanks,
John
On Saturday, May 7, 2005, at 10:38 AM, dan wrote:
> Lukas
>
> Thanks for the tips. Got it serving the image file at last, but its
> not a pretty sight....
>
> '?action=SWMimeView' produced a ByteArray doesNotUnderstand
> #squeakToIso. Its blowing up in SWKom>>#prepareResponse: Im guessing
> thats becuse it thinks that swResponse is html, rather than a mime
> time? I can put a ugly hack in make it work, but im sure there must be
> a better alternative......
>
> prepareResponse: swResponse
> | komResponse |
> komResponse := HttpResponse new
> contentType: swResponse type squeakToIso;
> status: (HttpResponse statusSymbolFor: swResponse
> status);
> contents: ((swResponse stream contents respondsTo:
> #squeakToIso) ifTrue: [swResponse stream contents squeakToIso]
> ifFalse: [swResponse stream contents asString]) readStream;
> yourself.
> self prepareResponseHeader: komResponse from: swResponse.
> swResponse cookies isEmpty ifFalse: [
> self prepareResponseCookie: komResponse from: swResponse ].
> ^komResponse
>
> If not, make sure that the mime type in the edit dialog of the image
> is set properly, it should be something like image/jpeg, image/ gif,
> ... Early ports ofSmallWiki didn't passed this information from the
> web-server to SmallWiki, but I think that has been fixed. Another
> thing you might want to check (in an
>
> It knows it is an image/gif, but it ignors requests to embed the image.
>
> Early on I thought that maybe I was running an old version of
> smallwkik. Someone had prepared an image with smallwiki already
> loaded, and thats the image I downloaded. Comparing it to the one in
> squeak map showed no differences. Also tried the VW version, but that
> was even worse.
>
> Any more suggestions?
>
> Daniel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: text/enriched
Size: 2239 bytes
Desc: not available
Url : http://www.iam.unibe.ch/pipermail/smallwiki/attachments/20050509/5dd6916d/attachment.bin
More information about the SmallWiki
mailing list