Ejemplo n.º 1
0
 public byte[] EstraiImmagine(out string fileName)
 {
     fileName = string.Empty;
     if (Picture != Guid.Empty)
     {
         ArticoliDS ds = new ArticoliDS();
         using (ArticoliBusiness bArticolo = new ArticoliBusiness())
         {
             bArticolo.GetBCMedia(ds, Picture);
         }
         ArticoliDS.BCMediaRow media = ds.BCMedia.Where(x => x.MediaSetID == Picture).FirstOrDefault();
         fileName = media.File_Name;
         return(media.Content);
     }
     return(null);
 }