XE7 Error Access Violation when insert image to BLOB field by Firedac . #androidapps #sqlite3 #xe7 #Tmemorystream

XE7 Error Access Violation when insert image to BLOB field by Firedac .  #androidapps   #sqlite3 #xe7 #Tmemorystream  
It worked on XE6.
sample script.
      LStream := TMemoryStream.Create;
      Image1.Bitmap.SaveToStream(LStream);
      SQLUpdate.ParamByName('Image').LoadFromStream(LStream, ftBlob);

Anyone can suggust?
Thanks.

Comments

  1. Sam Shaw - Very possible!
    FireDAC streaming support for blob parameters and support for MSSQL file streams
    New TFDParam properties : AsStream, AsStreams, IsDataSet, IsDatasets, IsObject, IsObjects, IsStream, IsStreams, IsUnicode, and StreamMode
    New TFDParam methods: GetDataReader and SetStream
    New TFDParams methods: Close and Unprepare.
    New TFDAdapterDataSet methods: CloseStreams.

    http://docwiki.embarcadero.com/RADStudio/XE7/en/What%27s_New_in_Delphi_and_C%2B%2BBuilder_XE7#FireDAC_Changes

    ReplyDelete
  2. Thanks.
    I change to SQLUpdate.ParamByName('Image').AsStream := LStream ;

    It's work. :)

    ReplyDelete

Post a Comment