I have a Report a Bug page added to a small site; I have a text box where a user can type a text that will be submitted to a table in my db; how do I implement the upload of a picture, let's say a screen capture? the most convenient way (for the user) would be to be able to press the Print Scrn button and then paste it to my text box ... well, I'm sure this won't work ...
I want to add picture to my SQL database using file Upload control but I don't know which attribute should I use also I don't know how to add it in the stored procedure,
I am uploading member's picture into my database. However, there are instances that the member will not upload its photo. In this case, I'd like to upload instead a picture that is stored in my web app's folder. How am I going to get the picture and store it in my database.
I ve an application dat am working on. The section of the upload picture works perfectly on the development environment and also on a test server but the issue comes up when it was hosted life. I started geting an error dat says picture could not be attached. I ve a folder cald Passport and dis ve been working for me on befor now but i dont now the reason y its not working now.
I am uploading images in c# windows application. I am uploading the images folder wise. In one folder there are 200 to 3000 images. My one images size is about 3.10 MB to 6.2 MB. Its dimensions are 3008 x 1960, 1960 , 4000 x 2600. 6000 x 4000 . while uploading i am reducing the size of image to 400 x 266 or 266 x 400 depending on the height and width of image. but still my image size is about 227 KB. Now i want to reduce the image resolution to decrease the image size.
I am trying to do some code where a user will be able to upload a .JPG picture from the users computer. I have put the controls and also written the C# code wich in my eyes seems to be correct. What happens in the code is that the uploaded picture will replace the existing "TopHeader.JPG" picture.
However when I run the code after I have choosen a .JPG picture from the desktop on my computer. Nothing happens except of a postback of the page.
I wonder what I can be missing out in order to make this work. (I attach both the HTML code and the C# code, I will be happy to know what I could be missing out)
I had write a code about get a picture from url and save as bitmap. However, there was a problem in HttpWebResponse. It didn't run the code start from HttpWebResponse.Then my whole website die there.
If i want to create a web site that take your picture and share it for your friends, what the best way to save the picture files on server? What the way is safer for the picture files? What the way has the best performance?
I have a program where the user can do the following
1. Browse to an image
2. Click on the Preview button to view the image
3. Click on the upload button
When the user clicks on the PReview button I am storing the path to the image in a Session variable since the path is lost and then when the user clicks on the upload button then I am grabbing that value from the Session value however I realize that this is not the best way. the user could change his mind and start over again but the session value would have the old image.
I would like to use viewstate but I am using this in a child page of a master page and no form exists?
so the question I have is are you able to use viewstate in a content page like this?
For the upload control I need to fill in the path to the image when it's cleared out after step 2. When the user cliks on the Preview button this value is erased on the page.
i help save image as picture in sql databases for consumer profile now i possess a site that sow consumer profile facts an im this site i possess a picture manage to display consumer avatar with. in code at the rear of with Userprofile.Avatar code i obtained the picture as byte
am trying to use the AsyncFileUpload control in ajax toolkit to upload a picture file, save the file on a location on the server's filesystem and display the picture file back to the client system. I have both the image and AsyncFileUpload controls inside an updatepanel but its seems the UploadedComplete server code is not firing when the file upload completes any clue?
im trying to update a movie picture using file upload control that is located under an update panel but nothing seems to get updated, is there anyway that the update panel is giving me this mess cuz i have tryd everything nothing seems to work only if its with an update panel ..
I am inserting a picture into a database, using the following code.
strFileType = Path.GetExtension(filImage.PostedFile.FileName).ToLower(); switch (strFileType) { case ".gif": strMimeType = "image/gif"; break; case ".jpg": case ".jpeg": case ".jpe": strMimeType = "image/jpeg"; break; case ".png": strMimeType = "image/png"; break; } //Store the content length int iDocLength = filImage.PostedFile.ContentLength; byte[] bDocBuffer = new byte[iDocLength]; //Get stream object Stream streamImage; streamImage = filImage.PostedFile.InputStream; streamImage.Read(bDocBuffer, 0, iDocLength); cmPerson.CommandText = "INSERT INTO photos VALUES(@referenceid, @image, @imgtype)"; cmPatient.Parameters.AddWithValue("@referenceid", iPersonID.ToString("000000")); cmPerson.Parameters.AddWithValue("@image", bDocBuffer); cmPerson.Parameters.AddWithValue("@imgtype", strMimeType); cmPerson.ExecuteNonQuery();
If in case that the user, did not browser for a picture, then, I have to use the nopho.jpg that is stored in the images/folder of my web app. How am I be able to do this?
Currently i'm saving pictures to our sql server db. A user can go to a clients info page and click an id card image to open a new tab or window and see the picture saved for that client.
What I would like to do is when a client info page opens a small version (thumnail) of the picture to display and let the user click the thumbnail to open a bigger icture in a popup window.