| |

VerySource

 Forgot password?
 Register
Search
View: 806|Reply: 1

Old question, insert and read image fields in the database

[Copy link]

2

Threads

8

Posts

7.00

Credits

Newbie

Rank: 1

Credits
7.00

 China

Post time: 2020-10-9 10:00:01
| Show all posts |Read mode
Ask a question about WINFORM, the database is mysql,
1 For example, a picture in the picturebox control in my program
I want to insert the product name, product model, and product quantity into a record in the database
Can it be achieved with a sql statement? I heard that it is not possible,
Is there any source code that can be referred to? This is the problem of writing the picture to the database

2 Then there is the problem of reading the picture from the database, which is the previous problem
In the opposite process, a record is read from the database. This record includes
Product name, product model, product quantity, product picture,
How can I read the field of this picture, and then in the picturebox control in the program
show,
Please give advice from an enthusiastic master
Reply

Use magic Report

0

Threads

4

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-10-9 18:45:01
| Show all posts
1. Yes, as long as you save Bytes, note that the header must have 0x pointer

2. Reading is easier, many controls can be directly bound
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list