Click here to Skip to main content
12,897,914 members (78,377 online)
Rate this:
Please Sign up or sign in to vote.
See more: C++ C C#

can any1 help me out to do it plzz

i googled for it but couldn't find any helpful things,,

help me out

Posted 28-Sep-12 10:08am
Sergey Alexandrovich Kryukov 28-Sep-12 16:19pm
So, C++, C or C#?
ryanb31 28-Sep-12 16:23pm
They all start with C. Is there much of a difference? :)
Ravi Bhavnani 28-Sep-12 16:24pm
What do you mean by converting the image into text?
Sergey Alexandrovich Kryukov 28-Sep-12 17:17pm
BillWoodruff 28-Sep-12 19:48pm
By "converting into text:" do you mean that you create a string of characters in either ASCII or hexadecimal notation codes ?
Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Not too clear on what you are trying to do, is this what you are looking for: Convert jpeg image to Byte array[^]
Marcus Kramer 28-Sep-12 20:59pm
+5. Looks like a winner.
Rate this: bad
Please Sign up or sign in to vote.

Solution 2

you can use Windows GDI and GDI+ functions to get bytes from every pixel of a JPEG image.

1.create a bitmap by loading your jpeg image.
2.retrieve bits using getbitmapbits() or getDIBits() windows GDI functions

Link Windows GDI:

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

    Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web01 | 2.8.170424.1 | Last Updated 12 Oct 2012
Copyright © CodeProject, 1999-2017
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100