ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
Google
 
Categories  >>  Software  >>  Microsoft Related  >>  VB.NET
 
 


 

 
 Visual Basic interview questions  Visual Basic Interview Questions
 C Sharp interview questions  C Sharp Interview Questions
 ASP.NET interview questions  ASP.NET Interview Questions
 VB.NET interview questions  VB.NET Interview Questions
 COM+ interview questions  COM+ Interview Questions
 ADO.NET interview questions  ADO.NET Interview Questions
 IIS interview questions  IIS Interview Questions
 MTS interview questions  MTS Interview Questions
 Crystal Reports interview questions  Crystal Reports Interview Questions
 BizTalk interview questions  BizTalk Interview Questions
 Dot Net interview questions  Dot Net Interview Questions
 Exchange Server interview questions  Exchange Server Interview Questions
 SharePoint interview questions  SharePoint Interview Questions
 Microsoft Related AllOther interview questions  Microsoft Related AllOther Interview Questions
Question
hello 
dear friends my problem is that i want to save images that 
is pictures in SQL server using vb.net can any body help me 
to do so please 
 Question Submitted By :: Ijaz_sh
I also faced this Question!!     Rank Answer Posted By  
 
  Re: hello dear friends my problem is that i want to save images that is pictures in SQL server using vb.net can any body help me to do so please
Answer
# 1
step1) place one fileUpload control from tool box
step2) in it's Button click event
    If FileUpload1.PostedFile Is Nothing  Then
                Response.Write("no file posted")
                
            Else
               Here Convert that image as byte and pass it
to function.
                Dim con As SqlConnection
                Dim cmd As SqlCommand
                Dim ds As New DataSet

                con = New
SqlConnection(ConfigurationManager.AppSettings("connectionString"))
                cmd = New SqlCommand("insert into tablename
values(@image_in), con)
 Dim imageByte(FileUpload1.PostedFile.InputStream.Length) As
Byte
               
FileUpload1.PostedFile.InputStream.Read(imageByte, 0,
imageByte.Length)
                cmd.Parameters.AddWithValue("@image_in",
imageByte)
                con.Open()
                cmd.ExecuteNonQuery()
                con.Close()
               
                Response.Write("file is inserted")
            End If
 
Is This Answer Correct ?    0 Yes 0 No
Govind
 

 
 
 
Other VB.NET Interview Questions
 
  Question Asked @ Answers
 
In Datagrid after adding row, how you will assign the value for each cell to currently added new row?  1
What does VS.NET contains ? Infosys3
Where would you use Abstract class and Interface?  2
What is JIT(Just In Time) and How it works? Infocons3
What is an abstract class?  3
What is the DIfference between Friend and Protected Friend? CTS5
How do you validate Date by using which validation Control? HCL3
In order to get assembly info whcih namespace we should import?  1
Why Datareader is useful?  5
hi dear ? MY problem is that i m developing software for Library. and i want to connect a third party software with my VB.net program in order to calculate DDC number.I dont know how to do this if any body can help me please?  1
hey friends, Firstly I pick the records from the database into the DataGridView, Then I want that If I made any changes to the records in the GridView & Click on Update Button, Changes are Reflected into the main Database .Plz do reply back  3
ColumnMapping belongs to which namespaces?  1
What is shadowing? TCS3
There are three versions of VB6--Learning Edition, Professional and Enterprise. Is VB.Net similar?  1
Can we use a crystal report into a another crystal report  6
What is the relation between Garbage collector and finalize and destructor? Kanbay2
what is the dif b/w panel and groupbox. Ksb3
how to connect crystal report with vb.net ? Patni6
hi dear ! thank u for replying to my question regarding adding third party software in vb.net .My next question is that i haven created Data base in SQL server 2000 for Library and has connected that with VB and VB.net separately but it only works on single computer and when i takes my software to another computer on same Network it does not work . Can any body help me what i do to solve. Regards!  1
linex will support dot net? Phoenix-Technologies4
 
For more VB.NET Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com