Hi,

> A few days ago when I was trying to store a blob in a MySQL
> database I...

I am not yet applying Torque so I don't know if what I am doing is useful.
I've been blobbing data into MySQL for quite sometime with my own home grown
code and I don't have to deal with escape characters at all.  It seems
escaping would hinder speed.  I simply implemented the Blob interface
http://java.sun.com/j2se/1.4/docs/api/java/sql/Blob.html, shoving the data
into it and then use a PreparedStatement
http://java.sun.com/j2se/1.4/docs/api/java/sql/PreparedStatement.html and
wham the data is in the database without escapes.  When I get a Blob back,
it comes back in the drivers Blob implementation.  Very fast.  Is there a
need for such code in Torque?

--Roger



--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to