i need a code for converting my .jpg into binary, i have used
fp=fopen("E:\\address.jpg","rb");
but the problem here is when my rest of the code runs where i need to use the binary value of the image , the unicode value of the image appears and that does not show correct results.
All files are binary. If you're outputting the data in a format you don't like, you need to change how you're outputting it. How are you processing the data? A jpg file is not a simple bitmap of an image and to get the actual image values there is a lot of processing to be done.
What are you actually trying to do with the jpg file?
actually i am trying to encrypt and decrypt an image, my code runs fine for text data but when i use it on a jpg file i donot get the same image back. so i thought maybe there is some image format issue.