473,472 Members | 1,760 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Search SQL image datatype

Hi,

I have an ASP .net application running on an SQL database. I upload my
files directly into a database table (small attachments) of "image"
datatype. If I wanted to search for a word contained in one of the
uploaded attachments, is there a way to take this input from the user,
convert it to binary, and search for it? Or even a better way to do
it? Thanks.
Nov 18 '05 #1
2 1382
Looking for a (text) word in a binary image file? That would be a trick! Am
I misunderstanding you somehow? What kind of "attachments" are we talking
about storing here?

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
I get paid good money to
solve puzzles for a living

"Matt Mercer" <ma******@bellsouth.net> wrote in message
news:37*************************@posting.google.co m...
Hi,

I have an ASP .net application running on an SQL database. I upload my
files directly into a database table (small attachments) of "image"
datatype. If I wanted to search for a word contained in one of the
uploaded attachments, is there a way to take this input from the user,
convert it to binary, and search for it? Or even a better way to do
it? Thanks.

Nov 18 '05 #2
Your binary search idea is flawed in too many ways to list here.
A better approach is keywords.
When uploading the file into SQL, require the user enter some keywords, and
save those keywords in one or more fields related to the file.
Then just search the keywords fields.

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://Steve.Orr.net
"Matt Mercer" <ma******@bellsouth.net> wrote in message
news:37*************************@posting.google.co m...
Hi,

I have an ASP .net application running on an SQL database. I upload my
files directly into a database table (small attachments) of "image"
datatype. If I wanted to search for a word contained in one of the
uploaded attachments, is there a way to take this input from the user,
convert it to binary, and search for it? Or even a better way to do
it? Thanks.

Nov 18 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Roger Withnell | last post by:
I'm updating a record by opening a recordset, setting the fields and the updating it with objRS.Update. I need to set an image datatype to NULL. objRS("field") = NULL works for datatypes int...
4
by: Henry Jordon | last post by:
I have everything pretty much done but I need to fix something in my coding. I want to be able to enter strings such as "love", "hate", "the", etc. but am unable to figure how to do this. I have...
1
by: Query Builder | last post by:
I have a table that has an image datatype column and I also have a contant type column in that same table to define which type of data is stored in that table. In this case a screen shot or may...
2
by: kabin selvam | last post by:
Hi, my scenario is like this, I have my document (word.or excel or pdf) stored a s a binary value(image datatype) in database, I need it to convert back into thedocument and save it as the file...
5
by: Jason Huang | last post by:
Hi, I have a PassWord column in SQL Server 2000 which is image datatype. How do I transfer or decode/encode text to image datatype so that my SQL Server recongnize it? Any help will be...
0
by: BATISTA | last post by:
Hi I have to program in C# such that I have to add a button to the form , and create a crystal report, by getting source from the xml schema file(.xsd file) with two fields namely...
3
by: den 2005 | last post by:
Hi everyone, Here is code working on..Trying to insert record with a column with Image or VarBinary datatype in sql database from a existing jpeg image file, then retrieve this image from...
10
by: Nathan Sokalski | last post by:
I am using ASP.NET 2.0, and need to know how to save and use an image that is stored in an SQL Server image datatype. How can I do this using ASP.NET? Thanks.
0
by: JamesOo | last post by:
I have the code below, but I need to make it searchable in query table, below code only allowed seach the table which in show mdb only. (i.e. have 3 table, but only can search either one only,...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.