Uploading an image into the db using DAL and BLL

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
<asp:parameter 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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top