怎么把数据库中存储的图片全部导出到一个文件夹中

如何把数据库中存储的图片全部导出到一个文件夹中
如题

图片是存储在数据库下的一个表的字段中的  
格式为bmp
 
现在想通过程序把所有的图片一次调出来
    一张一张的显示太慢
  谢谢大家

------解决方案--------------------
建议使用1.6版本,这是目前有破解的最新版本

<% ' Using ADO, open database with an image blob
strConnect = "DRIVER={Microsoft Access Driver (*.mdb)};DBQ= " & Server.MapPath( "../db/aspjpeg.mdb ")
Set rs = Server.CreateObject( "adodb.recordset ")
SQL = "select image_blob from images2 where id = " & Request( "id ")
rs.Open SQL, strConnect, 1, 3

Set Jpeg = Server.CreateObject( "Persits.Jpeg ")

' Open image directly from recordset
Jpeg.OpenBinary rs( "image_blob ").Value

' Resize
jpeg.Width = Request( "Width ")

' Set new height, preserve original aspect ratio
jpeg.Height = jpeg.OriginalHeight * jpeg.Width / jpeg.OriginalWidth

Jpeg.SendBinary

rs.Close
%>