C#Programming questions specific to the Microsoft C# language. See also the forum Beginning Visual C# to discuss that specific Wrox book and code.
Welcome to the p2p.wrox.com Forums.
You are currently viewing the C# section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
helllo...
1-u gonna but all picture u used in same folder.
2-u are going to save the path of the image .
3-then u will put image box and open the image depending on the path
Depends on what you want to do. Are you trying to store a Byte Representation of an image in SQL or are you just wanting to store the path of the image in the database?
The latter of the 2 is trivial since you would just be inserting a varchar value of [path/to/image]
The former requires that you load the image into memory from a users HD, convert that image into a Byte Stream and then pass that byte stream into SQL (Column Type image) Using GDI you will be able to reassamble and view the image when pulling it from a database.
-------------------------
I will only tell you how to do it, not do it for you.
Unless, of course, you want to hire me to do work for you.