Problème String cannot be converted
Bonjour,
Voici mon code pour me permettre d'uploader une image et un chemin vers un répertoire contenant des fichiers pdf.
InsertWithPicture est dans mon DataSet et vaut
INSERT INTO [Logos] ([idSupplier],[BrochurePath], [Picture] VALUES (@idSupplier, @BrochurePath, @Picture )
Code:
1 2 3 4 5
| <System.ComponentModel.DataObjectMethodAttribute(System.ComponentModel.DataObjectMethodType.Insert, False)> _
Public Sub InserWithPicture(ByVal idSupplier As Integer, ByVal BrochurePath As String, ByVal Picture() As Byte)
Adapter.InsertWithPicture(idSupplier, BrochurePath, Picture)
End Sub |
Pour BrochurePath, Visual Studio 2008 me donne l'erreur suivante: Value of type 'String' cannot be converted to '1-dimensional array of Byte'
Pour Picture, Visual Studio 2008 me donne l'erreur suivante:Value of type '1-dimensional array of Byte' cannot be converted to 'String'
Cela veut dire quoi au juste ?