Click here to Skip to main content
15,886,045 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
Unable to find any way to convert an image file so that it can be be encrypted by using adaptive arithmetic encoding. Please help me out..Thanks in advance...
Posted

1 solution

Assuming you have code to read the JPG file then you have each pixel color and usually your read is sitting in a memory block or memory context .... what more do you want :-)

Run the encoding on the memory block or context.

As you have posted in specifically in C if you don't already have reader code the Independent JPEG Group (IJG) provides a library in C where you will find jpegsr9a.zip.

http://www.ijg.org/[^]

Under Win32 API it is even more trivial to read a JPG file.
 
Share this answer
 
v4

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900