sir can you explain me how add image to access database through the C# gui application. for an example we have one gui application.in that there is a picture box and add button.once we click add, it should ask the location of picture. once we select the the photo. then it should be stored in access database. i am having a big problem in that please help me.
Manoj you can store images in access as an OLE field
a detail tutorial
Related
I cannot save the table I made which is just a code for a login database, but cannot save it to the actual database
I have looked at the questions related to this and found the same question but it didn't answer it correctly for me. It just doesn't work!
Clicking the update button does nothing to be honest and I need to get in the files of the table to complete my login database from a step-to-step video. The video looked a bit different because it had a dialog box where they could choose the name and it saves under the "Tables" category. Can anyone help me save it?
I'm using Visual Studio 2017 by the way.
Here is the image: heree
So...are you asking how to create a table? You have the script to create the table in the T-SQL tab at the bottom of your screenshot. Just run a new query on your database and put that in. Or right-click on the Tables folder and select the option to create a new table.
I'm trying to create a project which is basically a library management system.
As a display I used the standard DataSource to WinForm drag and drop system, which displays everything shown in the SQL table.
I want the users to be able to see the content of each row in the grid by double clicking it, which would redirect to another page with the selected row number and information to be displayed on each field.
As for the admin side, I want to be able to modify my db (delete, insert).
Is this the right path, or should I draw a grid from scratch?
Also, my SQL table contains images, this is what's bugging me.
The default gridview shows the little red X's in the varbinary column, and I can't seem to get rid of that.
Regarding inserting data into the table, is there any way to add images directly from the system above? Or should I redirect to a new page and code the respective into textboxes and things of the sort?
Thank you in advance.
the first pictures shows that the address is saved on my database. the 2nd shows my declaration of "product_image" on my database. the 3rd is the how i print the image on my gridview. and the 4th is the result. there is no image of the picture that i called. help me please. thanks. :)
The problem is, Here you are storing Physical path into database that's why it is creating problem, when you are providing full path like C:\user\xx\xx the asp.net application is not able to find those Images,Also this will create problem when you will deploy your application on production.The solution is to store Relative path based on current directory into database. Use this link for more information
Is it possible to create a "internal" database to use with a UWP?
So when i publish the app it comes with the db, because there is no need for me to use a db on lets say Azure.
In the app i show movies and the user can store a movie to favorites. So I only need to store the index number from that movie to use next time a user navigate to the favorites.
Or maybe there is a better way, like a text file?
I cant find any information regarding this and a tip would be much appreciated! :D
It seems like you have solved your case by using a text file instead of a db.
For the sake of detail :
If the text file doesn't meet your criteria further on you should probably use Sqlite. There's a preview version currently in development.
For more details :
https://stackoverflow.com/a/30001048/4487530
I have a search page that a user can use to search for certain information about a device (ex. computer) that has been entered into a SQL database. They can search for Brand, Type, Hard Drive Capacity and other things. Once they click the search button, results are displayed in a repeater control. The DeviceID for each device is clickable and when clicked, it takes the user to another page that has all the details about that certain device. I want to be able to display the image for that certain device on that page, as well as all the other information. I have the image being saved as Image type in my SQL database. But I can't figure out how to get it out of my database and display it on the page. I've tried a few different approaches including displaying it in a grid control, which didn't work. I also tried using ASHX files but couldn't quite figure that one out either. I am using C# and ASP.NET. Any help would be greatly appreciated. If any code is needed, please let me know and I will be glad to post it. Thanks!
First hit on Google:
Retrieve Images from a SQL database for display in an Asp.Net Datagrid
Was able to solve this kind of issue using a Handler (ASHX). there are a lot of samples online. try this .. http://www.aspdotnetcodes.com/Insert_Images_Database.aspx