Hi, I am trying to load an image from external URL, following is my code
and I get
An error has occured while processing PictureBox 'picProperty':
Access to the path xxxxxxxxx' is denied.
any suggestions?
Private Sub detail_ItemDataBound(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles detail.ItemDataBound |
Dim detail As Telerik.Reporting.Processing.DetailSection = DirectCast(sender, Telerik.Reporting.Processing.DetailSection) |
Dim section As Processing.DetailSection = TryCast(sender, Processing.DetailSection) |
Dim row As DataRowView = DirectCast(section.DataItem, DataRowView) |
Dim aPicBox = DirectCast(detail.ChildElements("pnlDetails").ChildElements("pnlPic").ChildElements("picProperty"), Processing.PictureBox) |
Dim oWebRequest As WebRequest |
oWebRequest = WebRequest.Create("http://www.geekologie.com/2007/12/07/future-car-1.jpg") |
aPicBox.Image = System.Drawing.Image.FromStream(oWebRequest.GetResponse.GetResponseStream()) |
End Sub |
and I get
An error has occured while processing PictureBox 'picProperty':
Access to the path xxxxxxxxx' is denied.
any suggestions?