Comment posted by Dan Letecky [DayPilot] 5 years ago.
It looks like you are missing quotes around the src attribute value:
Dim foto As String = Convert.ToBase64String(r("ImagenP"))
res.Columns.Add(New ResourceColumn("<img src='data:image/jpg;base64," & foto & "' width='150' height='150' /> "))
You might also consider serving the image using a special url. Then you would only use the image URL. This option lets you set caching headers for the image and improve performance.
Answer posted by javier 5 years ago.
I answer to myself
Private Sub ParkingDP_BeforeResHeaderRender(sender As Object, e As BeforeResHeaderRenderEventArgs) Handles ParkingDP.BeforeResHeaderRender
Dim htm As String = "<img src=data:image/jpg;base64," & Convert.ToBase64String(e.DataItem("ImagenP")) & " width='150' height='100' /> "
e.Columns(1).Html = htm
Comment posted by Dan Letecky [DayPilot] 5 years ago.
Thanks for posting your solution!
Comment posted by Javier 5 years ago.
You might also consider serving the image using a special url.??
what do you mean by special url?
save the image in an application folder and address it by link?
Comment posted by Dan Letecky [DayPilot] 5 years ago.
Yes, you can serve it as a static file (add it to the application folder). That would be the easiest way.