I need some assistance on saving a picture to a database (SQL2005),
I have created a project with and Add a new record and Edit record form, Within the Add new record form, I have two Richtextboxes, It lets me paste a picture and I clicik on save, but when I do a search and try to edit the record the pasted picture is gone. How can I keep (save) the picture.. I am using VB2005
Thanks
Loading
Mahesh ChandPosted Jul 21, 2008, 11:43 AM
This article helps you to insert an image to a blob field of an oracle database and to retrieve the image from the blob field of an oracle database.
An object is a memory stream, which is hard to write using the normal methods. In this article, I show how you can save objects in a database and read back from the database.
The attached code snippet in this article shows how to retrieve Oracle BLOB column data and save as a JPEG file using ASP.NET 2.0 and C#.
In order to provide your application with cool pictures you can employ two techniques (at least). One of them is that you can save the pictures in a folder and store the path to each one in a database or configuration file. The other one is to store the entire file into a database, along with its file name.