| | |
saving pictures to Access using ADO
Please support our VB.NET advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: May 2009
Posts: 5
Reputation:
Solved Threads: 0
Hi Guys
please I need your help.
I'm creating this small application that will control some equipments based on its bar code and the owner picture.
everything is working fine, except the picture.
is there a way to save image to access database using ADO Connections and\or recordsets?
I've head its possible to store the path and the retrieve. does any body have a step by step tutorial?
I would really appreciate your quickest answer
Thank you
my app example
please I need your help.
I'm creating this small application that will control some equipments based on its bar code and the owner picture.
everything is working fine, except the picture.
is there a way to save image to access database using ADO Connections and\or recordsets?
I've head its possible to store the path and the retrieve. does any body have a step by step tutorial?
I would really appreciate your quickest answer
Thank you
my app example
VB.NET Syntax (Toggle Plain Text)
With rs .AddNew() .Fields("Nome").Value = txtName.Text .Fields("CAI").Value = txtCAI.Text .Fields("Empresa").Value = cbCompany.Text .Fields("Departamento").Value = txtDepartment.Text .Fields("Extensao").Value = txtPhone.Text .Fields("Passe").Value = txtPass.Text .Fields("Tipo").Value = cbTipo.Text .Fields("Marca").Value = txtMarca.Text .Fields("Modelo").Value = txtModelo.Text .Fields("Serie").Value = txtNSerie.Text .Fields("Data").Value = Date.Today .Update() .Requery() clear() rs.Close() Call Imagem() End With 'Else With rs .Fields("Nome").Value = txtName.Text .Fields("CAi").Value = txtCAI.Text .Fields("Empresa").Value = cbCompany.Text .Fields("Departamento").Value = txtDepartment.Text .Fields("Extensao").Value = txtPhone.Text .Fields("Passe").Value = txtPass.Text .Fields("Tipo").Value = cbTipo.Text .Fields("Marca").Value = txtMarca.Text .Fields("Modelo").Value = txtModelo.Text .Fields("Serie").Value = txtNSerie.Text .Update() End With 'End If End Sub
Last edited by niek_e; 31 Days Ago at 5:46 pm. Reason: Add code-tags
•
•
Join Date: Sep 2009
Posts: 320
Reputation:
Solved Threads: 45
0
#3 32 Days Ago
Saving pictures to a database isnt optimal and should be avoided if possible. Including pictures can greatly increase the size of your database and reduce the speed of its processing. Likewise everytime you update a record that contains a picture, even if your not touching the column with the picture, that record size is doubled in your db making it continue to grow.
It is much better to store the path of your picture in a database column and use that path to load your pictures when needed.
It is much better to store the path of your picture in a database column and use that path to load your pictures when needed.
•
•
Join Date: Sep 2009
Posts: 320
Reputation:
Solved Threads: 45
0
#6 30 Days Ago
Leo, yes you can (and should) store the path and retrieve it and use that to load your images. To backtrack, you can upload pictures to the database (it is possible) but is a very bad practice to do so for reasons mentioned above. I'm glad you are reasonable enough to take the suggestions and opt to use a more efficient method.
As to your question, it is very general. What exactly do you need help with, creating a connection string, executing a query, loading the image?
Here is a link that will provide a lot of usefull examples for database programming from the MSDN:
Data Walkthroughs
As to your question, it is very general. What exactly do you need help with, creating a connection string, executing a query, loading the image?
Here is a link that will provide a lot of usefull examples for database programming from the MSDN:
Data Walkthroughs
Last edited by TomW; 30 Days Ago at 10:03 am.
•
•
Join Date: May 2009
Posts: 5
Reputation:
Solved Threads: 0
0
#7 19 Days Ago
Hi TomW
What I meant is: I'm using vb 2005 and I'm not being able to save the image path into the database not display it in a textbox/label.
If I could do one of the two above I could for sure be able to retrieve the image.
so the main problem is "I cant Save Image Path Into database, not eve display it in a text box or label and the be saved"
thanks for your prompt answers, and please help.
Cheers
What I meant is: I'm using vb 2005 and I'm not being able to save the image path into the database not display it in a textbox/label.
If I could do one of the two above I could for sure be able to retrieve the image.
so the main problem is "I cant Save Image Path Into database, not eve display it in a text box or label and the be saved"
thanks for your prompt answers, and please help.
Cheers
![]() |
Similar Threads
- VB Add/Edit/Save Pictures in Access DB (Visual Basic 4 / 5 / 6)
- connect datagrid to access db using ado code in vb6 (Visual Basic 4 / 5 / 6)
- Adding & Saving Records Access to VB.NET 2005 (VB.NET)
- ms access with vb (VB.NET)
- creating queries IN ACCESS using variables IN VB (Visual Basic 4 / 5 / 6)
- any MS Access experts!! (MS Access and FileMaker Pro)
- Saving Query in Ms Access .MDb File using C++ (C++)
- Saving Excel Spreadsheet using ADO.net gives inconsistent results (C#)
Other Threads in the VB.NET Forum
- Previous Thread: procedure or function Designation_INSERT has too many arguments specified.
- Next Thread: search function
| Thread Tools | Search this Thread |
Tag cloud for VB.NET
.net 2005 2008 access account application arithmetic array arrays basic bing button buttons c# center check checkbox code combobox component convert crystalreport data database datagrid datagridview date dissertation dissertations dropdownlist excel fade file-dialog ftp generatetags google gridview hardcopy images inline input insert intel internet listview mobile monitor ms net networking objects output passingparameters peertopeervideostreaming picturebox picturebox1 port print printing problem problemwithinstallation project remove save searchbox searchvb.net select serial server shutdown soap sorting survey table tcp temperature text textbox timer toolbox trim update updown user validation vb vb.net vb.netcode vb.netformclosing()eventpictureboxmessagebox vb2008 vbnet view visual visualbasic visualbasic.net visualstudio visualstudio2008 web winforms wpf





