c# - reading/writing blob from firebird


I'm trying to read image from firebird with c#, and save it to file system. I can read from table and save. but image can not be viewed. I tried many piece of code on net.but result is same :( Can any one help me please?


How are you retrieving the code form Firebird? If you are getting the data and casting it to a byte[] try:

byte [] blob = row["image"]; // create a file FileStream to write the data FileStream fs = new FileStream("image.jpg", FileMode.Create); fs.Write(blob,0,blob.Length); fs.Close();

The above code should do the trick.

PS: I have made lots of assumption in the code, but you can get the idea.


  • c# - reading/writing blob from firebird
  • Enable PHP Firebird connection
  • Hibernate CriteriaAPI and like operator. Swap operands + database independent concatenation - is it
  • Invalid token - invalid request BLR at offset 340 function F_LRTRIM is not defined
  • Firebird 2.1 - Simple SELECT
  • Display two unrelated select queries with no mutual fields in one firebird procedure
  • how to get today date in YYYYMMDD in firebird
  • Multiple Dispatch with Generics
  • OpenCV imread with foreign characters
  • Unable to retrieve full text of title from JPEG metadata
  • HBase REST API Locking Rows
  • django - make datetimefield accept unix timestamp
  • Cast uint -> double invalid?
  • retrieving data from url in iphone
  • C++ pointer value changes with static_cast
  • Get object from AWS S3 as a stream
  • Cross-Platform Protobuf Serialization
  • Validaiting emails with Net.Mail MailAddress
  • jQuery tmpl and DataLink beta
  • Do I've to free mysql result after storing it?
  • php design question - will a Helper help here?
  • SQL merge duplicate rows and join values that are different
  • AngularJs get employee from factory
  • Proper way to use connect-multiparty with express.js?
  • Acquiring multiple attributes from .xml file in c#
  • How to set the response of a form post action to a iframe source?
  • How to CLICK on IE download dialog box i.e.(Open, Save, Save As…)
  • embed rChart in Markdown
  • IndexOutOfRangeException on multidimensional array despite using GetLength check
  • Authorize attributes not working in MVC 4
  • How can I remove ASP.NET Designer.cs files?
  • How to get NHibernate ISession to cache entity not retrieved by primary key
  • How can I use `wmic` in a Windows PE script?
  • Unable to use reactive element in my shiny app
  • java string with new operator and a literal