Watch, Follow, &
Connect with Us

Please visit our new home
community.embarcadero.com.


Welcome, Guest
Guest Settings
Help

Thread: Need to upload tiff images from Client machine to Database Server


This question is answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 2 - Last Post: Dec 28, 2015 2:56 AM Last Post By: BASIL K E Threads: [ Previous | Next ]
BASIL K E

Posts: 2
Registered: 3/14/14
Need to upload tiff images from Client machine to Database Server  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 15, 2015 10:44 PM
Dear Sir,

Am using Delphi5 for development. My need is to upload .tiff images from client machine to Database server. Currently am only uploading .Jpeg images from client machine to Database server.

If its possible to upload tiff images in Delphi5?
If possible, Can u give one solution?

Regards
Basil
Robert Triest

Posts: 687
Registered: 3/24/05
Re: Need to upload tiff images from Client machine to Database Server  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 16, 2015 1:06 AM   in response to: BASIL K E in response to: BASIL K E
Please tell how you upload the jpeg images and why you can't just upload tiff images also.
They both files and you should tell why your procedure is restricted to jpeg files.
If you use a component like TImage you might have the problem loading tiff in it:

http://stackoverflow.com/questions/7845359/how-to-load-and-display-tiff-images-in-timage-control
BASIL K E

Posts: 2
Registered: 3/14/14
Re: Need to upload tiff images from Client machine to Database Server  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Dec 28, 2015 2:54 AM   in response to: Robert Triest in response to: Robert Triest
Dear sir,

Am using following code to view the image , that we selected.

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

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;

image1 is the Timage
Regards
Basil

Edited by: BASIL K E on Dec 28, 2015 2:55 AM

Edited by: BASIL K E on Dec 28, 2015 2:56 AM

Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02