|
发表于 2004-9-2 09:45:04
|
显示全部楼层
Haven't tried this myself, but I guess:
1) Define a Image column in the database.
2) In your Java code, create a java.sql.Blob object. populate it with your image binary data. then create an PreparedStatement, call its setBlob method to set the Blob object to its parameter, and execute.
Check SQL Server Books Online and J2SE API documentation for details.
PS: 楼上的 - 是MS SQL Server 2000, 不是MS SQL 2000. |
|