In article <✉4ax.com> Barry Kelly <✉eircom.net> wrote:
A mistake:
> ---8<--- > ms:= TMemoryStream.Create; > try > jpgOut.JPEGNeeded; > jpgOut.SaveToStream(ms); > Response.ContentStream:= ms; > except > on e: Exception do > begin > LogExcept(e); > ms.Free;
Oops. These are the wrong way around.
ms.Free; LogExcept(e);
> end; > end; > Response.ContentStream.Position:= 0; > [...] > --->8---
-- Barry