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.

Blob Field To String

Discussion in 'Delphi Programming' started by GURGAH, Dec 19, 2014.

  1. GURGAH
    Offline

    GURGAH DF Member

    data in a BLOB type, you may want to see a string.
    you can do this with this code snippet

    Code:
    function BlobFieldToString(Field:TField):String;
    var
      ResultStr: string;
      BlobField: TBlobField;
      bStream: TStream;
    begin
      if Field.IsBlob then
        begin
          BlobField := TBlobField(Field);
          bStream := Field.DataSet.CreateBlobStream(BlobField,bmRead);
          try
            SetLength(ResultStr,bStream.Size);
            bStream.Read(ResultStr[1],bStream.Size);
          finally
            bStream.Free;
          end;
          Result := ResultStr;
        end;
    end;
     
  2. drakeblood2
    Online

    drakeblood2 Guest

    work well?

     
     

Share This Page