DypsWebCapture : Take a snapshot of web page on the fly!

DypsWebCapture let you take a snapshot of a web page on the fly, and in real time!

Download Products


DypsWebCapture : Capture Web page as thumbnail image

Documentation
Example
Download
Buy

New release with embed IE and Firefox rendering engine !



DypsFTP : Manage a FTP site from your script

Documentation
Buy


DypsImg2SWF : Protect and save your image as SWF/Flash format!

Documentation
Example
Download
Buy


DypsXLS for ASP: Générateur de fichier Excel

New features!
Documentation
Exemple d'utilisation
Download
Buy


DypsMetaGrabber : get Meta Tag from any web page!

Documentation
Example
Download
Buy


DypsAntiSpam for ASP

Features
Exemple d'utilisation
Download
Buy

DypsoPRank for ASP

Features
Exemple d'utilisation
Download
Buy

Pop3 Checker for ASP

Features
Exemple d'utilisation
Download
Buy

SVG Pie chart Maker for ASP

Features
Exemple d'utilisation
Download

DypsRTF for ASP

Features
Exemple d'utilisation
Download
Buy

What's New ?


Mise en ligne du premier outil gratuit pour générer des fichiers Excel depuis ASP : DypsXLS !
[Lire la suite]

Et un forum Le site se dote d'un forum pour vous permettre de partager toujours plus.
[Rejoigner nous]

Annuaire de scripts ! Un annuaire de scripts et de liens utiles vers des ressources pour le développement
[Lire la suite]

Création d'un outil gratuit pour retrouver ses mails : Pop3 Checker for free !
[Lire la suite]

Création d'un outil gratuit pour générer des graphiques vectoriels à la volée: Free SVG Pie chart Maker !
[Lire la suite]

Snapshot and thumnail of web page

Techniques

This category is aimed to help programmers in order to find and share helpfull techniques, source code and more stuff.


Techniques / Web tools : DypsWebCapture : Capture thumbnail of an URL and store it in databaseDownload DypsWebCapture for free!



Documentation: DypsWebCapture object reference < Previous Page

  •  Step 1 : Create the database

First we going to create an Access database, called thumbsBase.mdb .
Add a table named : Files.
Then we will have to add 3 fields to this table :

  • Fieldname : FileName, Data type : Text
  • Fieldname : FileData, Data type : Objet OLE (Image)
  • Fieldname : Description, Data type : Text



  •  Step 2 : Capture the URL to image and store it in database

For this second step, we will write a script in order to capture a remote URL as image with this following script:


<%

Set Snap=server.CreateObject("DypsWebCapture.Snapshot")

'Launch a virtual browser window with the dimension :800x600
Snap.pageHeight =600
Snap.pageWidth = 800

'Specify the width and height of the image thumnail
Snap.thumbHeight = 130
Snap.thumbWidth = 170

'Grab the web page snapshot on the fly!
'and save it as jpg image 
'Be sure to have write permission on the local folder
'for IUSR_YourNameMachine account!
Dim out
out = Snap.GetImageBytes ("http://dypso.free.fr","*.jpg")

'Clean memory
Set Snap = Nothing
    
      ' Connection string
   Dim connStr
   connStr = "Provider=Microsoft.Jet.OLEDB.4.0; Data Source="
   connStr = connStr & Server.MapPath("thumbsBase.mdb")
    
   ' Recordset object
   Dim rs
   Set rs = Server.CreateObject("ADODB.Recordset")
        
   rs.Open "Files", connStr, 2, 2
        
   ' Adding data
   rs.AddNew
   rs("FileName") = "dypso.jpg"
   rs("FileData").AppendChunk out
   rs("Description") = "A thumbnail of Dypso BackOffice"
   rs.Update
        
   rs.Close
   Set rs = Nothing
        
Response.Write "File was saved..."
      
      
  			
%>

That's all the image is now stored in database as binary content !


Here is the final result in database :


Documentation: DypsWebCapture object reference < Previous Page