473,382 Members | 1,180 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

VB.NET: image database

3
hello.does anybody know ..

how to make an image database by using VB.NET 2005 and Microsoft Access

i want to make an application ( VB.NET 2005 ) that prompt a user to put his picture into database (Mic. Access)

the database i've set have a pictures field , staff name , address and so on..

so in the VB i know how to build a connection to the database ..

the problem is how do i make image uploader .. into database.


hope anybody can help me.
Nov 7 '06 #1
2 4030
Hansi65
13
Hi there,

my suggestion is not a solution to your question, more a workaround...

First of all there is the question: is it really necessary to put the image data inside your database?

The answer is usually NO, until you are planning sophisticated solutions including replication and the like. Image data can not be used for sorting, indexing or anything else what makes handling data in a database efficient.

Suggestion: use another "database system" already on your computer, the file system.

Suppose your users are listed in a table named USERS and indexed with a primary key named UserID.

Simply create a subfolder named PICTURES where your database resides and put your users images there with a fixed name derived from UserID, like Picture17.JPG.

Then you can use the frameworks standard commands like Image.Save and Image.FromFile to access your picture data and there is no need to fiddle with binary data in access tables.
Nov 8 '06 #2
oren18
3
Hi there,

my suggestion is not a solution to your question, more a workaround...

First of all there is the question: is it really necessary to put the image data inside your database?

The answer is usually NO, until you are planning sophisticated solutions including replication and the like. Image data can not be used for sorting, indexing or anything else what makes handling data in a database efficient.

Suggestion: use another "database system" already on your computer, the file system.

Suppose your users are listed in a table named USERS and indexed with a primary key named UserID.

Simply create a subfolder named PICTURES where your database resides and put your users images there with a fixed name derived from UserID, like Picture17.JPG.

Then you can use the frameworks standard commands like Image.Save and Image.FromFile to access your picture data and there is no need to fiddle with binary data in access tables.
are there any tutorial link .. like like you said ?
Nov 8 '06 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: Chris D | last post by:
I'm doing some work with submitting graphics via ASP.net page to SQL 2000 server using VB. I know how to get a graphic into the database from a filefield control. I also know how to pull it out...
3
by: seeni | last post by:
I have tried retrieving the image data from NorthWind database and print in the asp page using Repeater control. But instead of showing picture, the browser is showing "System.Byte" My code is...
13
by: Neo Geshel | last post by:
I have examined about 80+ different upload scripts on the 'net, both in VB and C#, and none seem to do what I need them to do. Perhaps someone here can point me somewhere that Google hasn't...
13
by: John Rivers | last post by:
Here is an example of what I am talking about: asp.net takes what is a very simple, powerful and flexible concept, http request/response with html for presentation and turns it into a...
0
by: mattmerc | last post by:
Hi all, I have an web application where security staff can enter incidents. Part of the form allows the user to describe person(s) involved in an incident. My company just so happens to have a...
35
by: Stan Sainte-Rose | last post by:
Hi, What is the better way to save image into a database ? Just save the path into a field or save the image itself ? I have 20 000 images (~ 10/12 Ko per image ) to save. Stan
4
by: Lindsey Howell | last post by:
Hello, I've encountered a problem when trying to display BLOB images from a SQL database using VB.NET. This is the code which generates the error: Dim mySqlConnection As SqlConnection = New...
3
by: michael | last post by:
Hi, I am trying to write an ASP.NET web app, in Visual Basic.NET, using Visual Studio.NET 2004, .NET framework 1.1.4322 SP1 Running the project/app on localhost while in dev/write/debug stage ...
18
by: Auto | last post by:
Hello, I would like to know how do display an image into a Gridview (ASP.NET 2.0) taken directly from a DataBase, NOT using an URL, like described in this article: ...
5
by: asharda | last post by:
Hi, I have an ASP.Net application with the back-end as VB.Net. I have a combo control and on the selection changed event of the combo control I need to get the selected image from the database...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.