G
G
German2018-07-13 18:19:40
C++ / C#
German, 2018-07-13 18:19:40

How to extract a file from the application's resources to the program folder or some other path?

There is a .jpg picture (bitmap) in the program, not in .dll and so on, it is clear that the size of the program has increased to 1mb, so it is right there, now how to get it out of there, for example, to the folder with the program?
Throw sites chtol, because I'm new.
Visual Studio 2017
13_07_2018_181225.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
doublench21, 2018-07-13
@doublench21

This is reverse engineering. Open the binary with any hex editor and look for the .jpg signature
. You'll be lucky if the image is stored as is, if not, then you need to look for the signature of what it is wrapped in.
In general, this is not an easy task at all. And the program here is rather needed for a simpler search for signatures. Not looking at all the bytes manually, ... but most of the time is usually spent on this. In short, the program for this is not the goal itself.
In the simplest case, run through all the bytes and look for the jpg start marker (0xFF 0xD8) and the jpg end marker (0xFF 0xD9)
Now all such cases, or rather all the bytes including the start and end markers, feed the functions (I don’t know which one you have, which converts bytes to JPEG, take that one) Well, actually, that's all.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question