|Basically you need a better undestanding on fundamental
C/C++ data types. For instance your point
(2) doesn't make any sense.
Possibly you're retrieving
binary data, representing an image from the database. In such case, you've just to make sure that:
- The database contains what is expectded (i.e. what is the format of the image inside the db (
- Your function(s) correctly transfer on file the data retrived from the database (i.e. the
binary content of the file matches the one of the record in the database).
If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.
This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke