while converting this datalist to pdf i am receiveing the following error
'Invalid URI: The Uri string is too long.'
<asp:DataList ID="dlattach" runat="server" Width="100%" DataKeyField="Id" ondeletecommand="dlList_DeleteCommand">
<ItemTemplate>
<div>
<table style="width: 100%;">
<tr>
<th colspan="2" style="padding-bottom: 20px"><b> <%# Eval("Name") %></b></th>
</tr>
<tr>
<td align="center">
<img width="80%" src='<%# "data:image/jpg;base64," + Convert.ToBase64String((byte[])Eval("Data")) %>' />
</td>
</tr>
<tr>
<td>
<br /><asp:LinkButton ID="lnkDelete" runat="server" Text="Delete" CommandName="Delete" ForeColor="#5cb874" OnClientClick="return confirm('Are you sure you want to delete?')" CausesValidation="False"></asp:LinkButton>
</td>
</tr>
</table>
</div>
</ItemTemplate>
</asp:DataList>
Response.ContentType = "application/pdf";
Response.AddHeader("content-disposition", "attachment;filename=Casestudy.pdf");
Response.Cache.SetCacheability(HttpCacheability.NoCache);
StringWriter sw = new StringWriter();
HtmlTextWriter hw = new HtmlTextWriter(sw);
dlcasestudy.RenderControl(hw);
StringReader sr = new StringReader(sw.ToString());
Document pdfDoc = new Document(PageSize.A4, 25, 25, 25, 25);
HTMLWorker htmlparser = new HTMLWorker(pdfDoc);
PdfWriter.GetInstance(pdfDoc, Response.OutputStream);
pdfDoc.Open();
htmlparser.Parse(sr);
pdfDoc.Close();
Response.Write(pdfDoc);
Response.End();