How to Store Graphic images in SQL Server databases. This project uses Visual Basic .net Stream Reader to store image data into SQL image data type into a SQL server 2005 database.
Main Form Control List
|
Control Name |
Property Name |
Value |
|
MenuStrip1 |
|
|
|
|
OpenToolStripMenuItem |
|
|
|
NewToolStripMenuItem |
|
|
|
SaveToolStripMenuItem |
|
|
|
|
|
|
Textbox |
Name |
txtImageFile |
|
Textbox |
Name |
txtTitle |
|
OpenFileDialog1 |
|
|
|
|
Title |
Set Image File |
|
|
Filter |
Bitmap Files|*.bmp" & "|Gif Files|*.gif|JPEG Files|*.jpg |
|
|
DefaultExt |
jpg |
|
|
FilterIndex |
1 |
|
|
FileName |
"" |
|
|
|
|
|
Label1 |
text |
Image File |
|
Label2 |
text |
Image Title |
|
|
|
|
|
PictureBox |
Name |
PictureBox |
|
|
|
|
|
Viewer Form |
|
|
|
Form |
Name |
frmViewer |
|
|
|
|
|
Label |
Name |
ImageTitleLabel |
|
|
text |
Title |
|
|
|
|
|
Label |
Name |
ImageTypeLabel |
|
|
text |
Type |
|
|
|
|
|
Label |
Name |
ImageHeightLabel |
|
|
text |
Height |
|
|
|
|
|
Label |
Name |
ImageWidthLabel |
|
|
text |
Width |
|
|
|
|
|
Textbox |
Name |
ImageTitleTextBox |
|
|
Databinding.text |
ImageCollectionBindingSource - ImageTitle |
|
|
|
|
|
Textbox |
Name |
ImageTypeTextBox |
|
|
Databinding.text |
ImageCollectionBindingSource - ImageType |
|
|
|
|
|
Textbox |
Name |
ImageHeightTextBox |
|
|
Databinding.text |
ImageHeightTextBox |
|
|
|
|
|
Textbox |
Name |
ImageWidthTextBox |
|
|
Databinding.text |
ImageCollectionBindingSource - ImageWidth |
|
|
|
|
|
PictureBox |
Name |
PictureBox1 |
|
|
Databinding.text |
ImageCollectionBindingSource - ImageContent |
|
|
|
|
|
TableAdapter |
Name |
ImageCollectionTableAdapter |
|
|
|
|
|
BindingNavigator |
Name |
ImageCollectionBindingNavigator |
|
|
|
|
|
BindingSource |
Name |
ImageCollectionBindingSource |
|
|
|
|
|
DataSet |
Name |
ImageGalleryDataSet |
|
|
|
|
 |
|
Thank you for viewing this source code. If you want to download the project files and a copy of this source code you must either fill out this form with a valid email address as some useful commets about this site or you may become a member free of charge. In either case a link will be emailed where you can down load the project filess.
|
|
|