How can I upload image by checking pixel(ie 100x100) and size(ie 50kb)in MS Access and retrieve from database to show in image control using C#.

you can check image height and width using system.drawing object

In order to do this I typically store the file on the server and store the file path in the database.

At the top of your vb you will need:

Imports system.io

Then in your method (upload or whatever) you will want to use file.create and file.remove, as well as file.exists in order to add, remove, and verify whether files exist in your desired location or if they need to be created.

As for checking file information refer to crishlay's post, I have the good fortune to have access to third party controls that perform validation for me :)

Best of luck!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.