Biswo
Biswo

Reputation: 351

How to save image to application path and retrieve from application path

I have one project and in this project I want to save picture to application path and save the path to database as string and retrieve the image from the application path. Can u give me some idea about it... i am using vb.net as frontend and ms access database

Upvotes: 0

Views: 3350

Answers (1)

Bobby
Bobby

Reputation: 11576

Getting the Application Path:

My.Application.Info.DirectoryPath

Combining Paths:

[System.IO.]Path.Combine(Path1, Path2)

Images:

yourImageObject.Save(yourPath)
yourImageObject = Image.FromFile(yourPath)

Upvotes: 2

Related Questions