<p>How do I save a jpg image to database and then load it in Delphi using FIBplus and TImage?</p>

[{'answer_id': 62271, 'author': 'Roger Ween', 'author_id': 6143, 'author_profile': 'https://Stackoverflow.com/users/6143', 'pm_score': -1, 'selected': False, 'text': '<p><a href="http://delphi.about.com/od/database/l/aa030601a.htm" rel="nofollow noreferrer">Take a look here.</a>\nI think you have to convert it to a stream, store it and vice versa.</p>\n'}, {'answer_id': 65859, 'author': 'Lars Truijens', 'author_id': 1242, 'author_profile': 'https://Stackoverflow.com/users/1242', 'pm_score': 0, 'selected': False, 'text': '<p><a href="http://www.devrace.com/en/fibplus/articles/2161.php" rel="nofollow noreferrer">This page</a> explains it. Use SaveToStream and a TMemoryStream instead of SaveToFile if you don\'t want temporary files. TImage.Picture has a LoadFromStream which loads the image from the stream into the TImage for display.</p>\n'}, {'answer_id': 69243, 'author': 'Ali', 'author_id': 10989, 'author_profile': 'https://Stackoverflow.com/users/10989', 'pm_score': 2, 'selected': False, 'text': "<pre><code>var\n  S : TMemoryStream;\nbegin\n  S := TMemoryStream.Create;\n  try\n    TBlobField(AdoQuery1.FieldByName('ImageField')).SaveToStream(S);\n    S.Position := 0;\n    Image1.Picture.Graphic.LoadFromStream(S);\n  finally\n    S.Free;\n  end;\nend;\n</code></pre>\n\n<p>if you are using JPEG images, add JPG unit to <strong>uses</strong> clause of your unit file.</p>\n"}, {'answer_id': 27692275, 'author': 'alper', 'author_id': 4402765, 'author_profile': 'https://Stackoverflow.com/users/4402765', 'pm_score': -1, 'selected': False, 'text': '<p>Delphi 7 paradox table</p>\n\n<p>insert dbimage to jpeg</p>\n\n<pre><code>var\n  FileStream: TFileStream;\n  BlobStream: TStream;\nbegin\n  if openpicturedialog1.Execute then\n  begin\n    Sicil_frm.DBNavigator1.BtnClick(nbEdit);\n    image1.Picture.LoadFromFile(openpicturedialog1.FileName);\n    try\n       BlobStream := dm.sicil.CreateBlobStream(dm.sicil.FieldByName(\'Resim\'),bmWrite);\n       FileStream := TFileStream.Create(openpicturedialog1.FileName,fmOpenRead or fmShareDenyNone);\n       BlobStream.CopyFrom(FileStream,FileStream.Size);\n       FileStream.Free;\n       BlobStream.Free;\n       Sicil_frm.DBNavigator1.BtnClick(nbPost);\n       DM.SicilAfterScroll(dm.sicil);\n     except\n       dm.sicil.Cancel;\n     end;\n  end;\nend;\n</code></pre>\n\n<p>Error "Bitmap image is nat valid"</p>\n'}]
['https://Stackoverflow.com/questions/62230', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/6155/']