K
kbutterly
Good afternoon,
I am working on an ASP.net 2.0 with VB app that requires images to be
uploaded. All the examples I can find do the actual saving of the file
in the code behind.
I am trying to do this app with a Data Access Layer and a Business
Logic Layer and no database code anywhere else. My problem is how to
access the Fileupload object from the BLL so that I can run the code to
save the image into the database.
I have a formView with the datasource all set up. I have tried using
an insertparameter with no type
<asparameter Name="fUpLoadImage" />
and typing it in the parameter of the Insert method in the BLL,
Public Function AddProduct(ByVal ProductCategoryID As Integer,.....,
ByVal fUpLoadImage As FileUpload)
but the fUpLoadImage parameter comes through as Nothing.
Is it possible to do it this way, through the BLL? If so, any pointers
would be appreciated.
Thanks,
Kathryn
I am working on an ASP.net 2.0 with VB app that requires images to be
uploaded. All the examples I can find do the actual saving of the file
in the code behind.
I am trying to do this app with a Data Access Layer and a Business
Logic Layer and no database code anywhere else. My problem is how to
access the Fileupload object from the BLL so that I can run the code to
save the image into the database.
I have a formView with the datasource all set up. I have tried using
an insertparameter with no type
<asparameter Name="fUpLoadImage" />
and typing it in the parameter of the Insert method in the BLL,
Public Function AddProduct(ByVal ProductCategoryID As Integer,.....,
ByVal fUpLoadImage As FileUpload)
but the fUpLoadImage parameter comes through as Nothing.
Is it possible to do it this way, through the BLL? If so, any pointers
would be appreciated.
Thanks,
Kathryn