开发者

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

开发者 https://www.devze.com 2022-12-13 00:24 出处:网络
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.

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


Getting the Application Path:

My.Application.Info.DirectoryPath

Combining Paths:

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

Images:

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

精彩评论

暂无评论...
验证码 换一张
取 消