In order for this site to work correctly we need to store a small file (called a cookie) on your computer. Most every site in the world does this, however since the 25th of May 2011, by law we have to get your permission first. Please abandon the forum if you disagree.

Para que este foro funcione correctamente es necesario guardar un pequeño fichero (llamado cookie) en su ordenador. La mayoría de los sitios de Internet lo hacen, no obstante desde el 25 de Marzo de 2011 y por ley, necesitamos de su permiso con antelación. Abandone este foro si no está conforme.

Loading graphic files in a SQLite database

Xailer professional forum in English
Responder
Stephan Hennekens
Mensajes: 305
Registrado: Jue Nov 30, 2006 12:17 am

Loading graphic files in a SQLite database

Mensaje 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
Stephan Hennekens
Mensajes: 305
Registrado: Jue Nov 30, 2006 12:17 am

Loading graphic files in a SQLite database

Mensaje 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
>
Stephan Hennekens
Mensajes: 305
Registrado: Jue Nov 30, 2006 12:17 am

Loading graphic files in a SQLite database

Mensaje 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
>
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5718
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

Loading graphic files in a SQLite database

Mensaje 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
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Avatar de Usuario
jfgimenez
Site Admin
Mensajes: 5718
Registrado: Lun Abr 06, 2015 8:48 pm
Contactar:

Loading graphic files in a SQLite database

Mensaje 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
José F. Giménez
[Equipo de Xailer / Xailer team]
http://www.xailer.com
http://www.xailer.info
Stephan Hennekens
Mensajes: 305
Registrado: Jue Nov 30, 2006 12:17 am

Loading graphic files in a SQLite database

Mensaje 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
>
Stephan Hennekens
Mensajes: 305
Registrado: Jue Nov 30, 2006 12:17 am

Loading graphic files in a SQLite database

Mensaje 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
>
Responder