Public Shared Function testimage(ByVal imageURL As String) As Byte() Dim request As System.Net.WebClient = New System.Net.WebClient() request.Credentials = New System.Net.NetworkCredential("Ftpuser", "1234567", "myPcname") Try Dim img() As Byte = request.DownloadData(imageURL) Return img Catch ex As Exception Return Nothing End Try End Function
this.reportViewer1.LocalReport.EnableExternalImages = true;
=Code.testimage(First(Fields!Pic_Path.Value, "Dataset1"))
Image source = Database<br /> MiME Type = Image/Jpeg
ftp://192.168.111.1:1234/1.jpg
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)