473,387 Members | 1,569 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.

Word search in byte image data

I hope someone can help....

I'm looking for ways to parse PBYTE image data created by GDI (via Unidrv) and search for a word. The original data consisted of images and text. Any idea?

Thanks in advance.
Sep 24 '07 #1
4 2185
weaknessforcats
9,208 Expert Mod 8TB
PBYTE is a pointer to a BYTE which is a typedef for an unsigned char.

That means PBYTE probably points to an array. Your task is to locate the array and find out what the elements mean.

Post again when you have more info.
Sep 24 '07 #2
It's
IOemUni::FilterGraphics
in WDK.

HRESULT FilterGraphics(PDEVOBJ pdevobj, PBYTE pBuf, DWORD dwLen)

I'm trying to see if I can somehow parse pBuf to find a string.
Sep 24 '07 #3
... or anywhere between an application and a printer...
Sep 25 '07 #4
weaknessforcats
9,208 Expert Mod 8TB
HRESULT FilterGraphics(PDEVOBJ pdevobj, PBYTE pBuf, DWORD dwLen)
Just as I thought. That PBYTE is the address of a BYTE buffer. Now you have to figure out what the buffer format is. It is obviously dwLen bytes in size.
Sep 25 '07 #5

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

Similar topics

1
by: Matthew Robinson | last post by:
i wrote a search page for my site (searching through a mysql database) but when i type in more than one word (eg "item three") in the search field it gets passed to the page as a single word...
2
by: Christopher Beltran | last post by:
I am currently trying to replace certain strings, not single characters, with other strings inside a word document which is then sent to a browser as a binary file. Right now, I read in the word...
1
by: K B | last post by:
I'm using the following in .NET to save a Word document to a SQL image column: Dim iImageSize As Integer = FileUpload.PostedFile.ContentLength Dim picbyte() As Byte = New Byte(iImageSize) {}...
3
by: Jmc | last post by:
Hi I would like to build an image search system, that can match both colors and/or shapes. The pictures will be quite simple picture with normaly 4-10 colors (maybe 20 in extreme cases). Large...
6
by: Eric Layman | last post by:
Hi, I have fields from textareas. With a click of a button, php is able to grab these fields and by using header(), convert the output to Ms Word doc. But the outcome of the word doc...
0
by: DougBatch | last post by:
I am storing resumes in SQL2005 so that I can make use of full text search. The resumes (word and txt docs) are stored as images. I would like to be able to highlight the keywords that are found in...
10
by: ESIS | last post by:
Hi, I am trying to create a "simple" application, of which, one of the functionalities is to be able to view a PDF Image (Invoice) held in a BLOB field on an SQL Database in the web browser. As...
11
!NoItAll
by: !NoItAll | last post by:
I need to search a buffer for a string of characters. The buffer is essentially a binary file (it's an image) and contains lots of chr(0) characters. The string I need to locate also contains...
0
Debadatta Mishra
by: Debadatta Mishra | last post by:
Introduction In this article I will provide you an approach to manipulate an image file. This article gives you an insight into some tricks in java so that you can conceal sensitive information...
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: 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
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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.