#1 2015-12-08 07:06:41

basil_ke
Member
Registered: 2015-12-08
Posts: 8

Tif image uploading in delphi

Am using following code to upload JPEG images in delphi.
But am not able to upload tif image. Can u pls give solution to upload tif images

procedure TfrmBarjeelImageScan.btnshowClick(Sender: TObject);
Var  JpegImage : TJpegImage;

begin
  if Trim(edtFileName.Text)= '' then
  begin
   ShowMessage('JPEG Image File not Selected');
   Exit;
  end
  else
  begin
   Image1.Picture.LoadFromFile(Trim(edtFileName.Text));
   JpegImage := TJpegImage.Create;
   try
    JpegImage.Assign(Image1.Picture.Graphic);
    Image1.Picture.Bitmap.Assign(JpegImage);
   finally
   end;
    FreeAndNil(JpegImage);
 end;
End;

Offline

#2 2015-12-08 07:47:00

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,659
Website

Re: Tif image uploading in delphi

OK. This code is for Jpeg.

What is your code about Tiff?

Offline

#3 2015-12-08 10:55:52

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,659
Website

Re: Tif image uploading in delphi

What do you call "upload"?

I do not understand what you expect.

Offline

#4 2015-12-09 07:18:49

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,659
Website

Re: Tif image uploading in delphi

Of course, yes.

But what do you mean, exactly?
What are you needs?

Offline

#5 2015-12-09 10:46:13

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,659
Website

Re: Tif image uploading in delphi

I do not see any difference between uploading a TIFF and a JPEG, from the SOA point of view.
Both are binary blobs.
But perhaps "upload" is not the right term.
"Upload" means remote sending of some data (here a picture) from a client to a server.
Is it what you mean?

Offline

#6 2015-12-10 08:08:42

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,659
Website

Re: Tif image uploading in delphi

What do you call a "server"?
A "database server"?
Or a "REST server"?

In mORMot context, we usually speak of REST server, not database server, which is itself called - by accident - from the REST server.

Offline

#7 2015-12-14 11:30:45

basil_ke
Member
Registered: 2015-12-08
Posts: 8

Re: Tif image uploading in delphi

Database server

Offline

Board footer

Powered by FluxBB