Re: Media view
"Roger Binns" <[email protected]>
| Newsgroups | gmane.comp.mobile.bitpim.devel |
|---|---|
| Message-ID | <006e01c66dfe$d7d35570$3501a8c0@rogersqyvr14d3> |
> Is there a way to put binary data in the database?
Yes, use the correct type - buffer. This will do the
trick:
cursor.execute("insert into foo values(?)", buffer("\x01\xff\x3e\x99"))
See also:
http://www.rogerbinns.com/apsw.html#Types
Roger
-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642