BLOB field to StdPicture WITHOUT temp file and WITHOUT thirt-party libraries
Posted on 2003-10-27
Hi, I need some help with BLOB -> StdPicture conversion.
I store JPG file data(student pictures) in the BLOB field in SQL Server. I read file using Stream object and then save it to the field. So, I need to know how to load image data from SQL Server BLOB field to PictureBox directly (NO temporary files). I've tried the trick with DataSource and DataField properties of PictureBox. It was working but now it shows me the error saying Class Not registered or something like that, so now i dont really trust it. If you have any ideas how to fix that, that would help me a little, but its NOT really what I am looking for.
I am NOT interested in temporary files, these suggestions are everywhere on the web. And please, no third-party libraries (unless they include VB source code).
Thanks everyone, your help will be appreciated. Thanks again!!