473,387 Members | 1,481 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,387 software developers and data experts.

Image file insertion into Database

89
Hi All,
I tried a lot also followed many previous example, still i cant get proper idea that how to insert an image file into database? I using VB and Access. for example:
My File image file is "C:\test\x.dwg", I want to insert into table test(img, ID) . Please help me if u can, Thanks advance, Sam
Dec 6 '07 #1
5 1381
debasisdas
8,127 Expert 4TB
You need to convert the file into byte stream and store in database file.
Dec 6 '07 #2
debasisdas
8,127 Expert 4TB
Please find the details here.
Dec 6 '07 #3
shaiful
89
Hello, thanks very much for ur valuable reply, However I cant understand which one is the image fime and which field of table will keep ? Sorry Just if more clear idea abt that, Thx
Dec 6 '07 #4
QVeen72
1,445 Expert 1GB
Hi,

Check This Out

The Code is for Oracle (Long Raw datatype)
For Access, Field datatype is : OLE Data

Regards
Veena
Dec 6 '07 #5
debasisdas
8,127 Expert 4TB
Hello, thanks very much for ur valuable reply, However I cant understand which one is the image fime and which field of table will keep ? Sorry Just if more clear idea abt that, Thx
strFileNm is th ename of the file
logo is the name of the field in database table.

for oracle datatype should be lob or long raw
for access datatype should be ole
Dec 6 '07 #6

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

Similar topics

2
by: Eric Linders | last post by:
Hello, The code below is used to grab each row from a CSV file (except the first row) and insert it into a database, as long as it's not already in the DB. If I echo each row's data, it...
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...
2
by: Trint Smith | last post by:
I need to store an entire html file in a string and not call it from a file. Is that possible?? How can I do this?? with rows double quotes and all...It needs to be something like this: Dim...
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
7
by: lgbjr | last post by:
Hello All, I¡¯m using a context menu associated with some pictureboxes to provide copy/paste functionality. Copying the image to the clipboard was easy. But pasting an image from the clipboard...
7
by: needin4mation | last post by:
Hi, I have an Access 2002 - 2003 database. I am using Access 2003. Whenever I link an image all it shows is the filename. Not the image. Other versions of Access can link the image just fine. ...
24
by: Manuel | last post by:
Is it possible to embed an image, like a company logo in a CDOSYS generated message? If yes, I´ll apreciate some code sample. I´ve been able to format messages in html the way I like, but I...
0
by: santybanty20 | last post by:
i have some problem on ilplementing the code for the insertion of image into database that didnot get how to use the code for image storege.so can u help me in the use for the code by which i want to...
2
mafaisal
by: mafaisal | last post by:
Hello Experts I am Using VB.Net 2005 And Sql 2005 I Want to Insertion of Image in to DataBase And its Retrievel And Also Passing of Images to Crystal Reports I am searching For This B coz I...
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: 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
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.