Click here to Skip to main content
15,914,327 members
Home / Discussions / ASP.NET
   

ASP.NET

 
GeneralRe: uploading files from visual web developer express edition Pin
Abhijit Jana13-Dec-07 23:07
professionalAbhijit Jana13-Dec-07 23:07 
GeneralRe: uploading files from visual web developer express edition Pin
eyeseetee13-Dec-07 23:19
eyeseetee13-Dec-07 23:19 
QuestionDynamically Creating controls in UserControl at design time Pin
fieh13-Dec-07 22:51
fieh13-Dec-07 22:51 
GeneralUsing Excel And Doc file into Web Server Pin
Deepak the Cool13-Dec-07 21:55
Deepak the Cool13-Dec-07 21:55 
GeneralAnalysis chart Pin
SUDHAKAR PALLAM13-Dec-07 21:06
SUDHAKAR PALLAM13-Dec-07 21:06 
GeneralRe: Analysis chart Pin
Vasudevan Deepak Kumar13-Dec-07 21:36
Vasudevan Deepak Kumar13-Dec-07 21:36 
GeneralUnable to cast object of type 'System.Byte[]'to 'System.IConvertible'. in Uploadiong Image in to Sqlserver Pin
mrgaddam13-Dec-07 20:48
mrgaddam13-Dec-07 20:48 
AnswerRe: Unable to cast object of type 'System.Byte[]'to 'System.IConvertible'. in Uploadiong Image in to Sqlserver Pin
Guffa13-Dec-07 21:11
Guffa13-Dec-07 21:11 
mrgaddam wrote:
objHttpPostedFile.InputStream.Read(bytImage, 0, intContentlength);


Oops! The Read method returns the number of bytes actually read, which can be smaller than the number of bytes requested. If you ignore the return value of the method, you don't know how much of the data that you actually get.

You have to get the return value from the method to see how much data was read, and loop until you have read all of the data (you reach content length, or the method returns zero).

mrgaddam wrote:
KF.Search.StoreImage(Convert.ToByte(bytImage));


You can't convert a byte array into a single byte.

mrgaddam wrote:
public static void StoreImage(byte strImage)


This method takes a single byte as parameter. That is truly pointless as you can't store an image in a single byte. Change the method to take an array of bytes.

Using hungarian notaion to specify data type is rather pointless in a strongly typed language. And if you specify the wrong type, as you have here when you gave a byte variable a name that says that it's a string, it's only confusing.
Experience is the sum of all the mistakes you have done.

GeneralRe: Unable to cast object of type 'System.Byte[]'to 'System.IConvertible'. in Uploadiong Image in to Sqlserver Pin
mrgaddam13-Dec-07 21:43
mrgaddam13-Dec-07 21:43 
GeneralRe: Unable to cast object of type 'System.Byte[]'to 'System.IConvertible'. in Uploadiong Image in to Sqlserver Pin
Guffa13-Dec-07 21:50
Guffa13-Dec-07 21:50 
Questionhow i can check wheter the text enterd is in a data formate or not Pin
jagan12313-Dec-07 20:28
jagan12313-Dec-07 20:28 
AnswerRe: how i can check wheter the text enterd is in a data formate or not [modified] Pin
Tarun Dudhatra14-Dec-07 1:05
Tarun Dudhatra14-Dec-07 1:05 
General3 level drill down datagrid Pin
uglyeyes13-Dec-07 20:00
uglyeyes13-Dec-07 20:00 
GeneralRe: 3 level drill down datagrid Pin
uglyeyes15-Dec-07 12:31
uglyeyes15-Dec-07 12:31 
GeneralInvalidOperationException was unhandled by user code Pin
Elizma13-Dec-07 19:35
Elizma13-Dec-07 19:35 
GeneralRe: InvalidOperationException was unhandled by user code Pin
N a v a n e e t h13-Dec-07 19:43
N a v a n e e t h13-Dec-07 19:43 
GeneralRe: InvalidOperationException was unhandled by user code Pin
Elizma13-Dec-07 20:33
Elizma13-Dec-07 20:33 
GeneralRe: InvalidOperationException was unhandled by user code Pin
Paddy Boyd13-Dec-07 23:46
Paddy Boyd13-Dec-07 23:46 
QuestionCrystal Reports in ASP.NET 2005 Pin
zareee13-Dec-07 19:35
zareee13-Dec-07 19:35 
GeneralRe: Crystal Reports in ASP.NET 2005 Pin
Elizma13-Dec-07 21:22
Elizma13-Dec-07 21:22 
Generaldata manager class Pin
chithra.r13-Dec-07 19:32
chithra.r13-Dec-07 19:32 
GeneralRe: data manager class Pin
Christian Graus13-Dec-07 22:01
protectorChristian Graus13-Dec-07 22:01 
QuestionComparison chart Pin
SUDHAKAR PALLAM13-Dec-07 19:08
SUDHAKAR PALLAM13-Dec-07 19:08 
GeneralRe: Comparison chart Pin
Michael Sync13-Dec-07 19:48
Michael Sync13-Dec-07 19:48 
GeneralRe: Comparison chart Pin
SUDHAKAR PALLAM13-Dec-07 20:29
SUDHAKAR PALLAM13-Dec-07 20:29 

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.