I need to display attachments on a visual force page for the Case object.
This is the code I am using. I had it working for awhile, but it somehow broke down. It gets all the attachments, but it will not show the images.
<apex:repeat value="{!Case.attachments}" var="att">
<apex:panelgrid columns="1">
<h1>Image/h1>
<apex:image url="/servlet/servlet.FileDownload?file={!att.Id}"/>
</apex:panelgrid>
</apex:repeat>