How to uploading and downloding the image in oracle database using asp.net

This is how I have done this in one of our projects:-

1. First way is store image in BYTEARRAY while checking UPLOAD CONTROL and hold that image in CACHE. And then store it (bytearray) in Database while clicking SAVE button.

2. Another way is to PUT that image on server by using UPLOAD.FileSave("PATH OF FILE") in an Binary array. The file will be saved in a folder on the server in JPG or any other form. And while saving it, image will have to be transfer from BinaryArray to Database. However if you do not want to make your database heavy becuase of the image, let it be stored on the server folder - just save the path of that file in the Database, which can be extracted while runtime of the application

Showing Answers 1 - 3 of 3 Answers

Jaiswal Vipin Kumar

  • Aug 13th, 2007
 

To upload the image in to the Oracle: if you are using stored procedure then by using command instance object you and pass the image in Binary Format is Request.BinaryRead() and to display the image user the same method i.e. reponse.binarwrite()

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions