How to delphi from blob fields to pull out all at once to print?
- 2A question from a series how to make, that without knowing that. What do you have in BLOB? - SoftR
- "checking" what? - Nofate ♦
- From the beginning, check what is there and then decide whether to print or not and I do not need questions on my question. I need a code - Alexs
- How my problem is solved, I know, but I don’t know how to explain this to a car, but rather how to express it in code - Alexs
- Is the final set of data formats known? There are so many of them. - Nofate ♦
|
1 answer
How to delphi from blob fields to pull out all at once to print?
Your task should be divided into two.
1. How in delphi from a blob of a field to pull out all at once?
Use the TBlobField.SaveToStream method to save data to the stream.
2. How to delphi to print?
This task is solved based on the nature of the data that was in the blob (and now in the stream). Text? Picture? Vordovsky document? Just a byte set?
- How to programmatically determine what is in the blob and type accordingly - Alexs
- No you must be clear about what you have there. You can try to identify popular file formats (BMP, JPG, PNG, DOC, etc.) by signature. But there are a lot of data formats, including closed ones. If you do not know what is there, then where is the guarantee that this is not a set of structured records for example? - Nofate ♦
|