Image downloading from remote servers in ASP
| Published on 5/22/2008 by Site Editor More articles in ASP
|
In this tutorial, we will access to a remote server, download image, rename ths image and save to our file system. We will use one function (getImage) and one subroutine (saveImage) to complete this sampel code. First part of our code, get image byte array from remote server. Second part contains a subroutine that writes byte array to file system. Lets's put our function and subroutine calls in the beginning of code. Creating variables imageUrl = "htp://www.some-domain-name.com/images/target-image.jpg"
Function and subroutine calls saveImage getImage(imageUrl), strImageName
Function getImage(strImageUrl) Sub saveImage(ByteArray, strImageName) Set objBinaryStream = CreateObject("ADODB.Stream") objBinaryStream.Open
Aim of this article, to be a reference how to download bytes from remote servers. You may use this source code after adding some error controlling to sample code. Happy Coding This part of code creates two main variables: imageUrl and strImageName. |
no comments submitted



