Hi All:
I have loaded my db column declared as follows:
[Thumbnail] [varbinary](max) NULL
I have loaded the column as follow:
I reference as follows:
I am getting the following:
The provided binary data may not be valid image or may contains unknown header
Anything wrong?
How do I verify that the image data is stored correctly?
Phil
I have loaded my db column declared as follows:
[Thumbnail] [varbinary](max) NULL
I have loaded the column as follow:
Dim _pdfStream As FileStream = NothingDim _fileName As String = "C:\Src\Proj\trunk\Data\2010-05-May-Cover.pdf"If My.Computer.FileSystem.FileExists(_fileName) Then _pdfStream = New FileStream(_fileName, FileMode.Open, FileAccess.Read) Dim _length As Integer = CInt(_pdfStream.Length) Dim _contents(_length) As Byte _pdfStream.Read(_contents, 0, _length) _pdfStream.Close() ' ... insert _contents into dbEnd IfI reference as follows:
<asp:FormView id="mImageFormView" runat="server" DataSourceID="mImageDataSource"> <ItemTemplate> <telerik:RadBinaryImage ID="rbiThumbnail" runat="server" Width="180px" Height="220px" DataValue='<%# Eval("Thumbnail") %>' AlternateText='No image' /> </ItemTemplate></asp:FormView>I am getting the following:
The provided binary data may not be valid image or may contains unknown header
Anything wrong?
How do I verify that the image data is stored correctly?
Phil