read byte of saved picture
-
hi.i want to read byte of save picture and show in fileUpload control.the below code dont work.please quidance me
while (dr.Read())
{
picture_fileUpload = (byte[])dr["picture"];
}You can't assign a value to an upload control. What are you trying to accomplish?
Failure is not an option; it's the default selection.
-
hi.i want to read byte of save picture and show in fileUpload control.the below code dont work.please quidance me
while (dr.Read())
{
picture_fileUpload = (byte[])dr["picture"];
} -
You can't assign a value to an upload control. What are you trying to accomplish?
Failure is not an option; it's the default selection.
-
Hi, Asp.net fileUpload control has FileBytes properties. It returns file content in terms of byte array. Upload image file and save in sql server.
-
this is edit page and i want that fileupload kept last image value and if we select new image then change its value
So display the existing image and check the FileUpload.HasFile property. If true then the user has selected a new file to be uploaded. Why make it more difficult?
Failure is not an option; it's the default selection.
-
Hi, Asp.net fileUpload control has FileBytes properties. It returns file content in terms of byte array. Upload image file and save in sql server.
Did you read the question?
Failure is not an option; it's the default selection.
-
So display the existing image and check the FileUpload.HasFile property. If true then the user has selected a new file to be uploaded. Why make it more difficult?
Failure is not an option; it's the default selection.
-
You DON'T set it. How many times do you need to be told this?
Failure is not an option; it's the default selection.
-
this is edit page and i want that fileupload kept last image value and if we select new image then change its value
-
OK - lets do it one step at a time. Have you managed to save the uploaded image to wherever you want?
Shreekar
Have you even read this thread? The first post shows the OP is obtaining the image from a database. The question isn't about uploading an image.
Failure is not an option; it's the default selection.