| View previous topic :: View next topic |
| Author |
Message |
Steven Guest
|
Posted: Mon Nov 21, 2005 7:25 pm Post subject: Store a pic to file and reload again |
|
|
When looking at a .dfm file, if you have any pictures on the form
you will see something like the following under the picture line.
Bitmap = { 5634563463463458687978987 }
Its a lot more lines than that. How can I go about in storing a picture
into a format like that, and then load it back up into my TPicture?
I am looking for a simple way of storing a picture into a record, I am using
commatext at the moment to store my records. Small pic, nothing fancy.
A sample will be helpful.
Thanks.
Steven
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Mon Nov 21, 2005 9:37 pm Post subject: Re: Store a pic to file and reload again |
|
|
"Steven" <stef (AT) bondo (DOT) edu> wrote
| Quote: | How can I go about in storing a picture into a format like that,
and then load it back up into my TPicture?
|
The data you see is just a hex string representation of the binary data,
where every pair of ASCI characters represents a single binary byte.
Besides that, the DFM itself stores binary data, not textual representation
of the data. What you see in the IDE is not what is actually in the .dfm
file. The IDE translates the binary data into text when viewed in the
editor.
With that said, why are you trying to load data into TPicture manually? Why
not use the feratures it already has implemented? What EXACTLY are you
trying to accomplish?
Gambit
|
|
| Back to top |
|
 |
Steven Guest
|
Posted: Tue Nov 22, 2005 3:28 am Post subject: Re: Store a pic to file and reload again |
|
|
I created a sample program and am uploading it to the attachments dir.
Can you take a look at it for me please.
Steven.
| Quote: | With that said, why are you trying to load data into TPicture manually?
Why
not use the feratures it already has implemented? What EXACTLY are you
trying to accomplish?
Gambit
|
|
|
| Back to top |
|
 |
Remy Lebeau (TeamB) Guest
|
Posted: Tue Nov 22, 2005 6:31 am Post subject: Re: Store a pic to file and reload again |
|
|
"Steven" <stef (AT) bondo (DOT) edu> wrote
| Quote: | I created a sample program and am uploading it to
the attachments dir. Can you take a look at it for me
please.
|
I re-wrote your project a little bit. See the attachments group for the
changes.
Gambit
|
|
| Back to top |
|
 |
Steven Guest
|
Posted: Tue Nov 22, 2005 1:51 pm Post subject: Re: Store a pic to file and reload again |
|
|
Thank you very much, I just tried it and it works
perfectly.
Thanks again
Steven
| Quote: | I created a sample program and am uploading it to
the attachments dir. Can you take a look at it for me
please.
I re-wrote your project a little bit. See the attachments group for the
changes.
Gambit
|
|
|
| Back to top |
|
 |
Pedram Guest
|
Posted: Wed Nov 23, 2005 10:19 am Post subject: Re: Store a pic to file and reload again |
|
|
I also want to see, what Subject name should I search?
thx
"Remy Lebeau (TeamB)" <no.spam (AT) no (DOT) spam.com> wrote
| Quote: |
"Steven" <stef (AT) bondo (DOT) edu> wrote in message
news:438290db (AT) newsgroups (DOT) borland.com...
I created a sample program and am uploading it to
the attachments dir. Can you take a look at it for me
please.
I re-wrote your project a little bit. See the attachments group for the
changes.
Gambit
|
|
|
| Back to top |
|
 |
Steven Guest
|
Posted: Wed Nov 23, 2005 3:12 pm Post subject: Re: Store a pic to file and reload again |
|
|
If you didn't find it, its called:
Re: Help to add picture into my record
in the attachments group.
"Pedram" <irbus (AT) remove-me-bonbon (DOT) net> wrote
| Quote: | I also want to see, what Subject name should I search?
thx
|
|
|
| Back to top |
|
 |
|