<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">I am trying to create anchors that will &quot;dynamically&quot; serve pdf documents.&nbsp; The archive in question is way too big for a FileLibrary and a separate web server is probably overkill
 since I intend to do all of this locally and would rather not have to run Apache on the machines in question (security paranoia or laziness, take your pick&lt;g&gt;) .&nbsp; So, I was hoping to create mime documents on the fly.<br>
<br>
I found suggestions such as:<br>
<br>
&nbsp;&nbsp;&nbsp; component session requestContext respond:[ :response |<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; response <br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; document:self getPdfBytes <br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; mimeType: 'application/pdf' <br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; fileName: 'seaside-test.pdf';<br>
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; doNotCache <br>
<div><br>
I don't see #getPdfBytes, but suspect I can wing it given the file names in anchors.<br>
<br>
The problem is that everything I ask for a requestContext feigns ignorance.&nbsp; I can't even get #session because of the same error.&nbsp; I am using Seaside 3 from the Pharo 1.3 image and Seaside downstream project.<br>
<br>
Any suggestions?<br>
<br>
Bill<br>
<br>
</div>
</div>
</body>
</html>