Which is best option to save images in database or file system, I am developing c++ server client app. I want to save the images in server using file system or database. I am confusing to choose which option?
Write a program that is able to save a list of items such as books, CDs, or DVDs and the items that are saved must have attributes associated with them. For example a book has a title, author, publisher, and ISBN.I would like to create a program that is able to save the database of items to a file on the hard drive and also retrieve it from the hard drive.I have this for a start of how to set up a storing program.
#include <iostream> #include <iomanip> using namespace std; int main () { const int arraySize = 10; int a[arraySize] = { 2, 6, 4, 10, 12, 89, 68, 45, 37 }; int i, hold;
I have a database of images and I want to store paths of all those images to a text file (lets say "images.txt"). I can then use this text file in c++ to extract images one by one by using getline() in a loop.
I don't know how to store image paths to a text file.
storing images in database as well as in folder...Images are loaded FROM URL...and after that i want to display Images from folder which is in given below code: but this code is not running...it shows sql connection problem.....but connection is perfect...This code runs properly but it doesn't shows the images from folder...and It doesn't save the images...
using System.Data; using System.Configuration; using System.Collections; using System.Web; using System.Web.Security; using System.Web.UI;
I am facing a problem which is that when i search image from database then it just shows last image which is stored in the database. My code is
private void Images() { SqlConnection con = new SqlConnection("Data Source=chusman-pc; Initial Catalog=Hotel_Management;Integrated Security=True"); con.Open(); SqlCommand com = new SqlCommand();
[Code] ....
I call this function at SelectedIndexChanged of dropbox..
I have patient_table in the database. which contain Id, name ,Image & other fields I have inserted the image in the Byte form in the database.Now i want to display all records in the Datagrid view in windows Form.
i am able to display id & Name & all fields but unable to display the image of a patient in the datagrid view.
I put all the records in the genric list:-
public static List<Personal_Details> AllMembers() { List<Personal_Details> listMembers = new List<Personal_Details>(); Personal_Details pDetails; try { String Constring = ConnectionString.dataBaseConnectionString;
[code]...
i am unable to write the code for displaying the image on data gridview.
I am unable to find the solution for binding the image field in the datagrid view.
What is the best way to save a c# web page to database, either sql or oledb both fine. What I am looking to do is save all the data that has been entered into a database then upload this data to a grid view or form view.
The problem is there is a a lot of data on the page. Such as drop down lists, check boxes panels text boxes. I am able to display the text boxes in the database when i enter information into them. this is not working for the other objects. Also there is fixed data in the panels which doesn't require user input but I still want this info saved as it is vital.
In short I want to save the data from a page ive created called DOCare.aspx into a database. then take the data and display it in Forms.aspx a different page, where it will list all the completed forms for the user to modify if needed.
How to do this or links to websites that have information on this?? Dont know if i am wording it wrong but just cant find a way to do this. Everyone ive seen is working with small amounts of data and only text boxes.
I had assign to do a project using c# window form.Now I am doing a smart part of coding which is let the data in textbox and using keypress function with a enter,the data will save in database and show on datagridview.I had searching how to do it online but all of them using mysql or sqlcommand something to do it! But my project is using the code that already done and can access without mysql or sql coding... Using this code to connect and show in datagridview...
using (TMPB_attn_DAL dalObj = new TMPB_attn_DAL()) { dataGridView1.DataSource = dalObj.GetRecords().Cast<TMPB_attn>().ToList(); dataGridView1.Refresh(); }
This is the function code for me to add data inside database,it can run but just still cant save.
private void txt_proximity_KeyPress(object sender, KeyPressEventArgs e) { if (e.KeyChar == (char)13) { if (BusinessLogicLayer.TMS_GET_PROXIMITY_VALID_TO_USE(txt_proximity.Text) == true) { TMPB_attn row_tmpb_attn = new TMPB_attn();
I have a text box invoice no on windows form and i need to retrieve data from database and everytime user click on the add button the invoice no should increment by 1...
I have application that codes and binds an access database to a windows form application. Everything seems to work however, nothing is actually saved in the database. Updates and deletes are coded and debugging steps through, but checking the db, the data is the same.
I am making a console based database system. Because I have to keep inserting, editing , deleting data blocks from my record file I have decided to use either vectors or list to store the all records. From the file I shall read the entire vector/list and work with it to add , remove or edit record and then again write the entire vector/list to the file again. I figured it would stop all the weird things that happen when directly working with the file. Is it an efficient way ?Or is it totally unnecessary ?Is there a better way?
i am trying to make a simple log in system without the use of database or whatever it is called.
my only concern is this
cout<<"enter password:"; cin>>pass;
how would i be able to make the characters appear as **** rather than the actual character that i would type as i am typing my password in CIN? or is it even possible?
I wrote an application with wpf and c sharp. And I use ado dotnet framework to connect the database. Now the problem is I want a centralize database for the application. And I hav e installed sql server on one of the which I want to serve as server. I now want all other clients to be able to connect to the database through local area network. how will I do that?
I am trying to develop a GUI using MFC, but I am having trouble using CFiledialog to save a file. The problem is, the file is not getting saved to the folder when I use the CFiledialog. Below is the code I am using.
I'm using C# with VS 2010, and I've created a .rdlc report file with 1 image boxes on it. How do I add images programmatically to this report file? Images are generated at runtime.
1st when i fill the things on form then saved in database after saving record when i want add another record it shows an error. after saving it saves new record refresh doesn't work
I'm having a little problem with std:fstream - in my program, the user selects the location of a file which I want to remember. So, I have something like this:
Code: std::string fileLocation; //Code here creates an 'open file' dialog box which lets the user choose which file to open. //The string 'fileLocation' now contains the path to the chosen file. std::ofstream prefs("prefs.txt"); if (prefs.is_open()) { prefs << fileLocation; prefs.close(); }
This works fine if the file chosen is in the same directory as the program, however, if they try to choose a directory outside of where the program is kept, it saves the text file into that directory instead of the same one as the program. So, it looks like outputting a directory into an ofstream actually changes the location to which the file is saved.
Is there a way to save the file directory to a text file using ofstream and still have the text file save in the same directory as the program?
How do you create a save file for a game, that is not a separate file? Specifically I am using code::blocks and sfml 2.1 to make a game and it saves to a text file at the moment. My problem is that it is very easy to modify the text file, and it is annoying to have to copy and paste several files if you want to use a copy of the game. I have a feeling that it may be to do with resource files, but I'm not exactly sure how to get these to work or whether you can modify them dynamically.
I am creating a program using the inheritance. The superclass is person and subclass is employee,manager etc. I will prompt the user to choose which subclass he want to save the record to but i dont know how to write and display the record of different subclass to and from a txt file.