954,514 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

why is image icon white/blank when fileupload saveas?

i use vb.net

i trying to do a file upload, i want to image to save to image folder, however, the image don't know appear in the directory that i indicate

if i click on "show all file", the image appear, but the image icon is blank or white like the image below show

so i click on that image and click on "include it in the project" , however, it shouldnt be the case that i everytime upload an image, i need to redo that again

**so how should i allow don't appear the white icon and to always appear in the upload folder when i upload a image instead of manually click on the image to include in ?**

is it visual studio problem? does i need to click on something to make the white icon disappear?

this is my code

Protected Sub uploadImage()
        Dim filename As String = FileUploadImg.FileName
        Dim fileType As String = filename.Substring(filename.Length - 4).ToLower()
        If (fileType = ".gif") Or (fileType = ".jpg") Or (fileType = ".png") Then
            FileUploadImg.SaveAs("C:\Users\Jane\Desktop\project\FileUpload\FileUpload\WebRole1\images\" & txtboxName.Text & "_" & FileUploadImg.FileName)
        Else
            MsgBox("failed")

        End If
    End Sub

    Protected Sub btnSubmit_Click(sender As Object, e As EventArgs) Handles btnSubmit.Click
           uploadImage()
           
            'End If
        End Sub

this is the image of how it look like

Attachments MRfNO.jpg 5.82KB
devilking
Newbie Poster
3 posts since Jan 2012
Reputation Points: 10
Solved Threads: 0
 

nevermind ;)

Techyon
Light Poster
25 posts since Apr 2010
Reputation Points: 10
Solved Threads: 2
 
nevermind ;)


what are you talkin? do you know why ?

devilking
Newbie Poster
3 posts since Jan 2012
Reputation Points: 10
Solved Threads: 0
 

Maybe its your file associations in Windows self.

Techyon
Light Poster
25 posts since Apr 2010
Reputation Points: 10
Solved Threads: 2
 
Maybe its your file associations in Windows self.

i not quite get what you mean....so how should i resolve?

devilking
Newbie Poster
3 posts since Jan 2012
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: