Click here to Skip to main content
15,919,778 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralWebclass question - VB6 and XP Pin
dpalazol24-Jun-03 17:18
dpalazol24-Jun-03 17:18 
GeneralRe: Webclass question - VB6 and XP Pin
Dave Kreskowiak27-Jun-03 9:05
mveDave Kreskowiak27-Jun-03 9:05 
General??icon association w/eVb and eVC++...but... Pin
shirleyLo24-Jun-03 8:48
shirleyLo24-Jun-03 8:48 
Generalhave code for icon association w/eVb and eVC++...but... Pin
shirleyLo24-Jun-03 8:47
shirleyLo24-Jun-03 8:47 
GeneralVB.Net exam questions Pin
boro1224-Jun-03 6:54
boro1224-Jun-03 6:54 
Generalhtml2text Pin
avexman24-Jun-03 4:17
avexman24-Jun-03 4:17 
GeneralSaving an image into a database from a dataset Pin
Regardt24-Jun-03 2:07
Regardt24-Jun-03 2:07 
GeneralRe: Saving an image into a database from a dataset Pin
Matt Casto24-Jun-03 3:35
Matt Casto24-Jun-03 3:35 
I ran into a problem inserting/updating images through a stored procedure, I think because of a limit to the size of data sent through a stored procedure parameter. To solve this problem, I execute inserts and updates directly, like this:

Public Function Insert(ByVal imageData As Byte(), ByVal imageType As String) As Integer<br />
  Dim cmdText As String = "INSERT INTO MyImages(Image, ImageType) VALUES(@image, @imageType) SELECT SCOPE_IDENTITY()"<br />
  Dim args(1) As SqlParameter<br />
  args(0) = New SqlParameter("@image", imageData)<br />
  args(1) = New SqlParameter("@imageType", imageType)<br />
<br />
  Try<br />
    Return CInt(SqlHelper.ExecuteScalar(ConnectionString, CommandType.Text, cmdText, args))<br />
  Catch ex As SqlException<br />
    ' do error handling<br />
    Throw<br />
  End Try<br />
End Function


NOTE: I'm using the Microsoft Data Access Application Block[^] (SqlHelper) for data access.
GeneralRe: Saving an image into a database from a dataset Pin
RZLR26-Jun-03 0:06
RZLR26-Jun-03 0:06 
GeneralRe: A DataGrid with Excel-like behaviour Pin
maxfava1-Jul-03 1:12
maxfava1-Jul-03 1:12 
Generalusing the internet transfer control Pin
kimrune24-Jun-03 1:41
kimrune24-Jun-03 1:41 
GeneralRe: using the internet transfer control Pin
AirGuitarist25-Jun-03 19:39
AirGuitarist25-Jun-03 19:39 
QuestionUsing a loop to create multiple controls at runtime? Pin
Jm6k23-Jun-03 11:51
Jm6k23-Jun-03 11:51 
AnswerRe: Using a loop to create multiple controls at runtime? Pin
dynamic23-Jun-03 12:01
dynamic23-Jun-03 12:01 
GeneralThanks Pin
Jm6k23-Jun-03 12:53
Jm6k23-Jun-03 12:53 
QuestionImplements DataTable - how to get started? Pin
Duncan Edwards Jones23-Jun-03 11:11
professionalDuncan Edwards Jones23-Jun-03 11:11 
Generalassembly run time errors Pin
ibiteu223-Jun-03 11:00
ibiteu223-Jun-03 11:00 
GeneralGAC problems,, PLEASE HELP!! Pin
ibiteu223-Jun-03 6:08
ibiteu223-Jun-03 6:08 
GeneralRe: GAC problems,, PLEASE HELP!! Pin
Ray Cassick23-Jun-03 6:20
Ray Cassick23-Jun-03 6:20 
GeneralRe: GAC problems,, PLEASE HELP!! Pin
ibiteu223-Jun-03 6:40
ibiteu223-Jun-03 6:40 
GeneralRe: GAC problems,, PLEASE HELP!! Pin
Ray Cassick23-Jun-03 7:09
Ray Cassick23-Jun-03 7:09 
GeneralRe: GAC problems,, PLEASE HELP!! Pin
ibiteu223-Jun-03 7:23
ibiteu223-Jun-03 7:23 
GeneralRe: GAC problems,, PLEASE HELP!! Pin
Ray Cassick23-Jun-03 7:35
Ray Cassick23-Jun-03 7:35 
Generalassociate icon w/program app Pin
shirleyLo23-Jun-03 3:15
shirleyLo23-Jun-03 3:15 
GeneralRe: associate icon w/program app Pin
Nick Seng23-Jun-03 16:34
Nick Seng23-Jun-03 16:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.