How to Save Image in Folder and Save Image Path to SQL Database in VB.Net | Swift Learn

preview_player
Показать описание

datatype of the image name column of SQL table is nvarchar(100). because only the image path will be stored in this column. If the folder path is more than 100 characters then datatype of the image column can be more than nvarchar(150).

follow this steps.
1. Add a picture box control in windows form application.
2. go to the click event and write code to browse and select image from computer drive.
3. Add a column in database table with nvarchar(100) datatype.
5. Just write code in button click event.
6. Finally debug. and test.

~~~~~~~~~~~~~
Subscriber will be notified when I will upload new tutorials in future. Many more new tutorials coming soon, so stay tuned!
~~~~~~~~~~~~~
You can also know all the programming techniques, and bug fixing, error solution in my channel Swift learn.
~~~~~~~~~~~~~
Share this video with anyone if you think as useful.

Please leave any suggestions for future tutorials in the comment section below.
~~~~~~~~~~~~~
Connect with me

You can also know all the programming techniques, and bug fixing, error solution in my channel Swift learn.
See All the playlist in below link

Details

Рекомендации по теме
Комментарии
Автор

Dear @SwiftLearn

Thank you for the excellent tutorial; your efforts are greatly appreciated.

I have a few questions regarding image retrieval:

If images are saved locally and their paths stored in the database, how can other users access these images?
Will additional code be required, or can the system utilize the stored paths to fetch the images directly?
I look forward to your guidance.

Best regards

graceiyadunnialade
Автор

Great Video, but I am getting errors below
type character '&' does not match declared datatype 'String'
comma, '), or a valid expression continuation expected
')' expected

I am not a programmer, just a novice learning

can you pint me in the right direction please. I am using visual studio 2022

KevinAus
Автор

Hi Dear, it is very useful.. Thanks.. How can we print these image along with some basic details in crystal Report in vb.net 2010.

MrSarwan
Автор

Hi, bro
How can I upload image from Scanner device in vb.net ?
Need your help as soon as you can plZh

HAIDER
Автор

How to do if need to insert image and data at the same time?

fernandocabute
Автор

its really work . can you make or add delete function base in your toturial video

junnelilagan
Автор

Can you do the same process with PDF files? Thank you.

roldha
Автор

Hi ! Thanks for making this video. it helped alot. although i had an error which i am stuck for days "a generic error occurred in gdi+ vb.net" happends at line a.Save(pathstring). I wish you can help me

Liquid
Автор

Hi, iti´s excelent
but there´s an error when i try to save with another picture.
show me this error: "error genérico en gdi+. "
Could you help me, Please

ricardomarquez
Автор

I WANT TO SAME IMAGE ON THE MAIN SQL SERVER NOT ON THE LOCAL COMPUTER AND I WANT TO SAVE IT ON A FOLDER ON MAIN SQL SERVER..

k-r