Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamic images directory

Status
Not open for further replies.

stephenk1973

Technical User
Jun 11, 2003
246
GB
I have a direcoty of images. How can i can i create a list of these images as a datasource for a thumbnail page?

I have tried creating a object datasource and corresponding buisness object but to be fair i'm not sure if this is the correct method......

Namespace PubsClasses
Public Class StoreImagesClass
Private dsStoreImages As DataSet = New System.Data.DataSet("ds1")


Public Function GetStoreImages() As ICollection

Dim d As IO.DirectoryInfo = New IO.DirectoryInfo(System.Web.HttpContext.Current.Server.MapPath("~/Images/Display"))
Return d.GetFileSystemInfos("*.jpg")

End Function
End Class

Any pointers or articles much appreciated.

Thnaks

Stephen



 
How can i can i create a list of these images as a datasource for a thumbnail page?
Do you mean you want to display a list of file names or thumbnails of all the images?


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
You can use the Image.GetThumbnailImage method and call it for each image that you want to display.


____________________________________________________________

Need help finding an answer?

Try the Search Facility or read FAQ222-2244 on how to get better results.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top