Bonjour,
J'ai une bd ou j'enregistre mes fichier sous forme System.byte[] mais mon prebleme est que je ne sais pas comment les relire pour les afficher dans mon site web ??![]()
Quelqu'un pourrait m'aider ??
voici le code pour l enregistrement du fichier
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15 //Will be used to determine Document length int intDocLen; Stream objStream; intDocLen = Request.Files.Get("invoiceFiles").ContentLength; //buffer to hold Document Contents byte[] docBuffer = new byte[intDocLen]; //InputStream: //Gets a Stream object which points to an uploaded Document; //to prepare for reading the contents of the file. objStream = Request.Files.Get("invoiceFiles").InputStream; //Store the Content of the Documnet in a buffer //This buffer will be stored in the Database objStream.Read(docBuffer ,0,intDocLen);
Partager