1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Donation with Paypal!!!

    Go to your paypal account and send directly donation to [email protected]

    1 month - 10 $ - Standart VIP

    6 months - 20 $- Standart VIP

    1 year - 30 $- Standart VIP

    2 years - 50 $- Standart VIP

    Gold member for life - 150 $- Standart VIP

    High Vip (Standart VIP include) group please send PM or email to [email protected] for info

    After Donation please send email to [email protected]

  3. Donation Ways 2020


    Paysend
  4. Telegram
Dismiss Notice

Donation with Paypal!!!

Go to your paypal account and send directly donation to [email protected]

1 month - 10 $ - Standart VIP

6 months - 20 $- Standart VIP

1 year - 30 $- Standart VIP

2 years - 50 $- Standart VIP

Gold member for life - 150 $- Standart VIP

High Vip (Standart VIP include) group please send PM or email to [email protected] for info

After Donation please send email to [email protected]

Dismiss Notice
For open hidden message no need write thanks, thank etc. Enough is click to like button on right side of thread.

Loading Image from DataSnap Server to Android App

Discussion in 'Delphi Android And IOS' started by dison, Apr 22, 2014.

  1. dison
    Offline

    dison DF Member

    Im loading a imagen into a Timage on my Android App,

    I have:

    XE5

    DataSnap Server

    App Android Client

    if the image is like (40KB, 200x200) the image show perfectly in the Timage

    but if the image is like (320KB, 970x800) the image show nothing in the Timage, and dont guive any error just dont show the image.



    I use this routine to load the image from my DataSnap Server



    var

      BlobStream: TStream;

    begin

     TClienDataSet1.Open;

      BlobStream := TClienDataSet1.CreateBlobStream(TClienDataSet1.FieldByName('image'),TBlobStreamMode.bmRead);

       try

      TImage1.Bitmap.LoadFromStream(BlobStream  );

     

                   finally

                      BlobStream.Free;

                    end;

    end;
     

Share This Page