Página 1 de 1
Loading graphic files in a SQLite database
Publicado: Dom Nov 30, 2008 1:01 am
por Stephan Hennekens
Hi,
could anyone help me with a Xailer code snippet to load graphic files into a
SQLite database (if possible).
Regards,
Stephan
Loading graphic files in a SQLite database
Publicado: Jue Dic 04, 2008 7:53 am
por Stephan Hennekens
Ignacio,
is it possible though Xailer to load graphic files in an SQLite db?
Regards,
Stephan
"Stephan Hennekens" <
stephan.hennekens@wur.nl> wrote in message
news:[email=4931d7ba@svctag-j7w3v3j....]4931d7ba@svctag-j7w3v3j....[/email]
> Hi,
>
> could anyone help me with a Xailer code snippet to load graphic files into
> a SQLite database (if possible).
>
> Regards,
> Stephan
>
Loading graphic files in a SQLite database
Publicado: Jue Dic 04, 2008 7:53 am
por Stephan Hennekens
Ignacio,
is it possible though Xailer to load graphic files in an SQLite db?
Regards,
Stephan
"Stephan Hennekens" <
stephan.hennekens@wur.nl> wrote in message
news:[email=4931d7ba@svctag-j7w3v3j....]4931d7ba@svctag-j7w3v3j....[/email]
> Hi,
>
> could anyone help me with a Xailer code snippet to load graphic files into
> a SQLite database (if possible).
>
> Regards,
> Stephan
>
Loading graphic files in a SQLite database
Publicado: Jue Dic 04, 2008 10:48 am
por jfgimenez
Stephan,
sorry for the delay.
> could anyone help me with a Xailer code snippet to load graphic files into
> a SQLite database (if possible).
// Load a image from disk
oPicture := TPicture():LoadFromFile( "MyPicture.jpg" )
// Save it into the field 'image' of the dataset 'oMyTable'
oMyTable:image := oPicture:SaveToStream()
// Retrieve the same image into a TPicture objet
oPicture := TPicture():LoadFromStream( oMyTable:image )
If you are using a TImage control, you may use its property oPicture as the
needed TPicture object.
--
Regards,
Jose F. Gimenez
http://www.xailer.com
http://www.xailer.info
Loading graphic files in a SQLite database
Publicado: Jue Dic 04, 2008 10:48 am
por jfgimenez
Stephan,
sorry for the delay.
> could anyone help me with a Xailer code snippet to load graphic files into
> a SQLite database (if possible).
// Load a image from disk
oPicture := TPicture():LoadFromFile( "MyPicture.jpg" )
// Save it into the field 'image' of the dataset 'oMyTable'
oMyTable:image := oPicture:SaveToStream()
// Retrieve the same image into a TPicture objet
oPicture := TPicture():LoadFromStream( oMyTable:image )
If you are using a TImage control, you may use its property oPicture as the
needed TPicture object.
--
Regards,
Jose F. Gimenez
http://www.xailer.com
http://www.xailer.info
Loading graphic files in a SQLite database
Publicado: Jue Dic 04, 2008 3:53 pm
por Stephan Hennekens
Thanks a lot Jose,
Regards,
Stephan
"Jose F. Gimenez" <
jfgimenez@wanadoo.es> wrote in message
news:[email=4937a78a@svctag-j7w3v3j....]4937a78a@svctag-j7w3v3j....[/email]
> Stephan,
>
> sorry for the delay.
>
>> could anyone help me with a Xailer code snippet to load graphic files
>> into a SQLite database (if possible).
>
> // Load a image from disk
> oPicture := TPicture():LoadFromFile( "MyPicture.jpg" )
> // Save it into the field 'image' of the dataset 'oMyTable'
> oMyTable:image := oPicture:SaveToStream()
>
> // Retrieve the same image into a TPicture objet
> oPicture := TPicture():LoadFromStream( oMyTable:image )
>
> If you are using a TImage control, you may use its property oPicture as
> the needed TPicture object.
>
> --
> Regards,
>
> Jose F. Gimenez
>
http://www.xailer.com
>
http://www.xailer.info
>
Loading graphic files in a SQLite database
Publicado: Jue Dic 04, 2008 3:53 pm
por Stephan Hennekens
Thanks a lot Jose,
Regards,
Stephan
"Jose F. Gimenez" <
jfgimenez@wanadoo.es> wrote in message
news:[email=4937a78a@svctag-j7w3v3j....]4937a78a@svctag-j7w3v3j....[/email]
> Stephan,
>
> sorry for the delay.
>
>> could anyone help me with a Xailer code snippet to load graphic files
>> into a SQLite database (if possible).
>
> // Load a image from disk
> oPicture := TPicture():LoadFromFile( "MyPicture.jpg" )
> // Save it into the field 'image' of the dataset 'oMyTable'
> oMyTable:image := oPicture:SaveToStream()
>
> // Retrieve the same image into a TPicture objet
> oPicture := TPicture():LoadFromStream( oMyTable:image )
>
> If you are using a TImage control, you may use its property oPicture as
> the needed TPicture object.
>
> --
> Regards,
>
> Jose F. Gimenez
>
http://www.xailer.com
>
http://www.xailer.info
>