如题。

解决方案 »

  1.   

    没用过mysql,不过你要倒jpg图片,那么程序要use jpeg.
      

  2.   

    TBlobField(ADOQury.Fields[n]).LoadFromfile('xxx.jpg');
      

  3.   

    楼上的用法是可以在sql server中用,MY SQL不知道,应该也可以。
      

  4.   

    MySql沒試過,樓主是在MsSql中。
      

  5.   

    这个类 TBlobField 在哪个单元。
      

  6.   

    db单元
    UnitDBDescriptionTBlobField encapsulates the fundamental behavior common to binary large object (BLOB) fields. BLOB fields are database fields that contain raw binary data of arbitrary length. BLOB fields can represent different arbitrarily large data types. These data types are distinguished in the header of the binary data.In addition to the field types supported directly, TBlobField is the direct ancestor of two BLOB field components: TMemoField (ftMemo) and TGraphicField (ftGraphic). These descendants represent BLOB fields that have headers peculiar to memos or graphic data, respectively.TBlobField introduces new methods to support streaming data to and from the BLOB field and to support copying raw binary data between the BLOB field and a binary file. You can also use the stream returned by a dataset抯 CreateBlobStream method to read or write the data managed by a BLOB field.If you use the Fields editor at design time to create a persistent field component for the BLOB field, you can access it by name at runtime. When using dynamic field components, you can access the TBlobField instance using the dataset抯 Fields property or FieldByName method.
      

  7.   

    TBlobField(ADOQury.Fields[n]).LoadFromfile('xxx.jpg');
    用这个来保存JPG,简直就是扯蛋。