Click here to Skip to main content
16,020,568 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionAn easy way to archive many files into one file? [Solved] Pin
Pamodh22-Aug-10 6:28
Pamodh22-Aug-10 6:28 
AnswerRe: An easy way to archive many files into one file? Pin
Eddy Vluggen22-Aug-10 9:57
professionalEddy Vluggen22-Aug-10 9:57 
GeneralRe: An easy way to archive many files into one file? Pin
Pamodh23-Aug-10 5:34
Pamodh23-Aug-10 5:34 
GeneralRe: An easy way to archive many files into one file? Pin
Eddy Vluggen23-Aug-10 9:40
professionalEddy Vluggen23-Aug-10 9:40 
GeneralRe: An easy way to archive many files into one file? Pin
Pamodh24-Aug-10 1:47
Pamodh24-Aug-10 1:47 
QuestionProblem in saving image to database from picturebox. VB.Net 2008. Framework 3.5. Pin
priyamtheone20-Aug-10 3:23
priyamtheone20-Aug-10 3:23 
AnswerRe: Problem in saving image to database from picturebox. VB.Net 2008. Framework 3.5. Pin
Luc Pattyn20-Aug-10 3:42
sitebuilderLuc Pattyn20-Aug-10 3:42 
QuestionRe: Problem in saving image to database from picturebox. VB.Net 2008. Framework 3.5. Pin
priyamtheone21-Aug-10 2:30
priyamtheone21-Aug-10 2:30 
I have found the root of the problem but still couldn't get any solution. When we save the image using this line- 'pic.Image.Save(ms, pic.Image.RawFormat)' the image needs to be in its original format for the RawFormat() method to work properly. So when we click the Browse button, it's browsing an image into the picturebox in its original format. But when we retrieve the image from the database using arrays and streams, though we can view it but it's not in its original format and hence the above mentioned line in btnOk is throwing the exception.
That's exactly the point and that's why inserting a new image is ok, update with a different image is ok but update with the same image is crashing. I think the key to solve it is while retrieving the image from the database if we can somehow convert it to its original format or some format that's recognizable by the RawFormat() method and then show it in the picturebox. In that way when we press btnOk for update, RawFormat() will get the original format of the picture and save it properly.
I don't know how to do it practically or if there's some workaround. Can anybody make a solution out of this? Please assess on this topic and give your views. Regards.
AnswerRe: Problem in saving image to database from picturebox. VB.Net 2008. Framework 3.5. Pin
Luc Pattyn21-Aug-10 10:56
sitebuilderLuc Pattyn21-Aug-10 10:56 
QuestionHow Barcode Reader Read Image Pin
Anubhava Dimri19-Aug-10 19:07
Anubhava Dimri19-Aug-10 19:07 
AnswerRe: How Barcode Reader Read Image Pin
riced19-Aug-10 22:48
riced19-Aug-10 22:48 
QuestionDatagridview Column Pin
C#Coudou18-Aug-10 20:12
C#Coudou18-Aug-10 20:12 
AnswerRe: Datagridview Column Pin
Andy_L_J19-Aug-10 20:00
Andy_L_J19-Aug-10 20:00 
Questioninstalling to older versions of Windows Pin
RyJaBy18-Aug-10 8:25
RyJaBy18-Aug-10 8:25 
AnswerRe: installing to older versions of Windows Pin
Dave Kreskowiak18-Aug-10 9:08
mveDave Kreskowiak18-Aug-10 9:08 
AnswerRe: installing to older versions of Windows Pin
Tom Deketelaere19-Aug-10 2:30
professionalTom Deketelaere19-Aug-10 2:30 
GeneralRe: installing to older versions of Windows Pin
RyJaBy19-Aug-10 2:42
RyJaBy19-Aug-10 2:42 
QuestionDetecting selected text Pin
Pasan14817-Aug-10 7:21
Pasan14817-Aug-10 7:21 
AnswerRe: Detecting selected text Pin
Dave Kreskowiak17-Aug-10 14:41
mveDave Kreskowiak17-Aug-10 14:41 
AnswerRe: Detecting selected text Pin
Tom Foswick24-Aug-10 22:45
Tom Foswick24-Aug-10 22:45 
QuestionTextBox_Leave event only fired when move mouse to other control in vb.net 2005 Pin
Andraw Tang17-Aug-10 6:19
Andraw Tang17-Aug-10 6:19 
AnswerRe: TextBox_Leave event only fired when move mouse to other control in vb.net 2005 Pin
riced17-Aug-10 7:23
riced17-Aug-10 7:23 
GeneralRe: TextBox_Leave event only fired when move mouse to other control in vb.net 2005 Pin
Andraw Tang17-Aug-10 8:12
Andraw Tang17-Aug-10 8:12 
GeneralRe: TextBox_Leave event only fired when move mouse to other control in vb.net 2005 Pin
Eddy Vluggen17-Aug-10 9:00
professionalEddy Vluggen17-Aug-10 9:00 
GeneralRe: TextBox_Leave event only fired when move mouse to other control in vb.net 2005 Pin
Andraw Tang17-Aug-10 8:26
Andraw Tang17-Aug-10 8:26 

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.