Multiple Image Upload

Posts   
 
    
vraya
User
Posts: 4
Joined: 14-Jul-2008
# Posted on: 05-Aug-2008 07:37:01   

Hello everybody

I got a query regarding multiple image upload where i want to upload images into specified drive and images path must be save into sqlserver 2005 database. Am using C# and SQL Server 2005 with LLBLGEN 1.1.2005 version help me please

daelmo avatar
daelmo
Support Team
Posts: 8245
Joined: 28-Nov-2005
# Posted on: 05-Aug-2008 08:00:10   

What about something like this? (assuming SelfServicing TemplateSet):

ImageCollection imagesToSave = new ImageCollection();

try
{
     // upload each image and add new image to the collection
     forech(string path in imagesToUpload)
     {
          // build the string path + filename destination
          // upload the image
          ...

          ImageEntity image = imagesToSave.AddNew();
          image.FilePath = theFinalFilePathDestination;
     }

      // save the collection    
      imagesToSave.Save();  
}
...
David Elizondo | LLBLGen Support Team