Adobe Solution Partner

January 25, 2008

ColdFusion, Sybase, and 0-byte BLOBs

Filed under: ColdFusion, Databases — Tags: , , — Daryl Banttari @ 12:36 pm

If you’re using ColdFusion to access BLOBs stored in a Sybase server, you may have a problem.  Apparently, Sybase severely limits the timeframe wherein you’re allowed to retrieve the actual binary data, which is supposed to be available until the end of the current transaction.  ColdFusion doesn’t pull the backing binary data immediately, and when it does, Sybase’s driver returns a 0-byte result.

We’ve implemented a workaround in SeeFusion’s driver for this.  If you append “;convertBlobToBytes=true” to the end of the JDBC URL, SeeFusion (starting with version 4.0.7) will quietly convert any BLOB responses to byte array objects before returning the data to ColdFusion’s JDBC getObject() call.  I’m not aware of any other drivers having this issue, but it should work for any other driver as well.

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • LinkedIn
  • StumbleUpon
  • Technorati
  • TwitThis

No Comments »

No comments yet.

RSS feed for comments on this post. TrackBack URL

Leave a comment

 

Server Down?

Maximize Web application uptime by drawing upon Webapper's years of experience tuning and stabilizing many of the world's largest ColdFusion Web applications. Contact us today!