Hi
I need only to show in the DbImage component.
Previously I had the plan to store Pdf in the blob field. But now I
intend to store a .jpg file.
If i am to use pdf , I will need to call a Pdf viewer as an external
program. But if its a jpg , it will be shown in the lazarus App itself.
regards
Nataraj
Mattias Gaertner wrote:
On Sat, 23 Sep 2006 12:13:59 +0530
Nataraj S Narayan <[EMAIL PROTECTED]> wrote:
Hi
Thanks! its working. Now please help me to get an Image from a blob
field in Mysql 4.1 database.
I never tried, so it is better to ask on the list. See below.
I am working for a school. What we need is a checking system to show
the photos of the Student , parents and guardians after keying in the
Roll No.
This would be my very first real work on lazarus. I will be showing
it on a Linux thin client, on a 486. Next stage is to rewrite all my
Delphi 4 code to lazarus , without MyOdbc and BDE load.
Another unorthodox way is to store all the images in the file system,
giving the name same as the roll numbers, and then loading each file
into the TImage as and when a roll no is keyed in.
I tried something like this :- But giving SIG errors
Stream:=TMemoryStream.create;
Stream:=sqlquery1.CreateBlobStream(sqlquery1.FieldByName('pdf') as
TBlobField,bmRead);
// Stream.Position:=0;
Image1.Picture.Bitmap.LoadFromStream(stream);
Stream.free;
Images4Lazarus does not contain a reader for PDF.
And as far as I know, FPC and Lazarus does not contain such a function.
Please ask on the mailing list, if someone knows a PDF to image
converter.
Mattias
begin:vcard
fn:http://www.gsis.ac.in
n:S Narayan;Nataraj
org:Good Shepherd International School;Software
adr:Niligiris, ;;M.Palada;Ootacamund;TN;643004;INDIA
email;internet:[EMAIL PROTECTED]
title:Project Coordinator
tel;work:0423 2550371 - 307
x-mozilla-html:TRUE
url:http://www.gsis.ac.in
version:2.1
end:vcard