Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > view images from a database

Thread Tools

view images from a database

Posts: n/a
Hi. Ever since i've upgraded to 2.0, I can no longer view my images.

it fails at the line of code:

bmpFile = New Bitmap(stmFile)

with an error message "Parameter is not valid"

here's the code:


Dim bmpFile As Bitmap
Dim stmFile As New MemoryStream
Dim objWriter As New BinaryWriter(stmFile)

While myReader.Read

bmpFile = New Bitmap(stmFile)

page.Response.ContentType =
Dim thisformat = bmpFile.RawFormat
End While


has anyone run into this issue?

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Database Database Database Database Computer Information 0 09-27-2012 02:43 AM
DataBase DataBase DataBase DataBase Computer Information 0 09-26-2012 09:40 AM
Can't view images on Google Images Computer Support 5 12-30-2005 01:45 AM
How to make a week view and day view calendar just like month view calendar in .NET ? Parthiv Joshi ASP .Net Web Controls 1 07-06-2004 03:15 PM
Wierd error when going to Design View from HTML view VB Programmer ASP .Net 1 07-10-2003 03:20 PM