Click here to Skip to main content
15,896,402 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Iam converting fileupload image as bytes and saved to oracledatabase as Blob datatype

I used Following code

Byte[] imgByte = null;
HttpPostedFile File;
C#
File = FileUpload_choice1.PostedFile;
                imgByte = new Byte[File.ContentLength];
                File.InputStream.Read(imgByte, 0, File.ContentLength);
                QB.QUESTION_CHOICE1_IMG = imgByte;


It successfully saved into blob

But now i retrieve blob data and bind to fileupload
how can i convert blob to bytes array
How can i show bytes array to fileupload

Any suggestions
Posted

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900