-
- Visual C#
by imrankhanpathan
- 33555 Replies
- 225953 Views
- Last post
-
convert Bitmap to Image
- Hi friends
I have a bit problem.
I am working in asp.net 2.0 with c#.
In my application,I scan fingerprint of user from scanner and display it in Image control.
Now my problem is that I dont know that how to insert that image in sqldatabase as image datatype.
Here is another way.
I have one class called sfr and it has one method to get image of finger and it return in Bitmap format.
for this my code is here.
Bitmap Finger = sfr.GetLastImage();
System.Web.UI.WebControls. Image CandFinger= new System.Web.UI.WebControls. Image ();
CandFinger =(System.Web.UI.WebControls. Image ) Convert .ChangeType(Finger, typeof (System.Web.UI.WebControls. Image ));
sfr is my class and getlastmethod is method that return scanned image of user.
Now I want to convert this image in Image object becouse of in my database I want to save this image in image datatype.
but last line of this code gives error that Object must implement IConvertible.
For this what I have to do
Can I insert Bitmap image as an Image datatype
Plz help me out and give me right solution.
Thanks in advance.
-
- Internet Explorer
by MSMit
- 6926 Replies
- 44863 Views
- Last post
-
Html table using arrows like in grid
- I use Html table in .Net 2 WebBrowser component in Windows Forms. What I want is to mimic grid behaviour as far as user keystrokes are concerned. E.g. pressing down arrow key makes next row in html table highlighted and deselects currently highlighted . There is no problem with implementing this functionality via onkeydown event in a table , but can't figure out how to keep highlighted row always visible. Either suppressing this key for IE scrolling or making it bubble via "return true;" sooner or later makes highlighted row out of view. Is there way consistently calculate Y coordinate for highlighted row and keep it always visible. TIA Michael
-
- Windows Forms
by Johan Burger
- 61053 Replies
- 346027 Views
- Last post
-
Change prerequisite location after publish
- Hi,
I publish my application to our development server. I then manually copy everything to our Test server, change all the db connection info, resign manifest, etc. and the app works great.
The problem occurs when a user, without the .Net framework, runs the app for the first time from the test server. The installer tries to install the .Net framework from the development server instead of the test server. Where do I change the prerequisite location after a publish My app is set to download the prerequisites from the same location as the app.
Thanks,
JohanB.
-
- Visual Studio
by MK.BlackCoffee
- 69672 Replies
- 424527 Views
- Last post
-
How to create a window just like "Go To" Command window
- In Vs.Net 2005, I can implement CreateToolWindow2 create new window with User Control and can not with the Window Form type.But i need create the new window just like "Go To"(in Edit menu) Command window.so ,which function or interface can help me to implement
Thanks
-
- Game Technologies
by masood123456789
- 17098 Replies
- 131266 Views
- Last post
-
My Graphic card stuck
- got a graphic card of Nvidia Geforce MX400.
Now it says my driver file is very and require to update, but i am unable to update.
Can anybody help me in this
-
- SharePoint
by armaSANEA
- 35789 Replies
- 205509 Views
- Last post
-
Custom Content types issue
- Hello! I'm trying to understand how content types work and what are its limitations. I need to have the possibility to change the content type of an item depending on certain conditions, and can't figure out how to do it!!
The closest I tried to come up with is this:
if (changeContentTypeRequired)
{
newFile.Item[ "Content Type" ] = baseFolder.ContentTypeOrder[2];
newFile.Item.Update();
}
How do I change the content type of an item from code
-
- Visual Basic
by Andrew DeVaughn
- 46131 Replies
- 296153 Views
- Last post
-
Sound
- How can I play a sound without the user seeing a media player
-
- Microsoft ISV
by bennett1016
- 5320 Replies
- 31745 Views
- Last post
-
iexplore.exe - Application Error
- I get the following error message when I close my internet explorer.
The instruction at "0x62304320" referenced memory at "0x62304320", The memory could not be "read". Click on OK to terminate that program.
Any ideas what is causing this
-
- Visual FoxPro
by Junar
- 6930 Replies
- 59265 Views
- Last post
-
Object assisted report in dot matrix printers
- I encountered a problem using object assisted reporting. Preview works fine but when I tried printing it in dot matrix printers like Epson FX-890 or Epson LQ-2170, it printed smaller fonts and the whole letter size paper was only printed 3/4 of its size, what could be the problem To further determine the cause of the problem, I tried printing it using report behavior 80 and it came out fine, thus report behavior 90 is to be attributed as the problem for these printers. Please enlighten me on why this is happening.
Thanks.
-
- Smart Device
by SPESHOW
- 32165 Replies
- 187270 Views
- Last post
-
threading
- i had an error in this line. may i know how to correct it..
threadField.Join( new System. TimeSpan (MiliSeconds * 10000));
-
- Visual Studio 2008
by Psych971
- 58740 Replies
- 363069 Views
- Last post
-
Extend the last column in a GridView
- Hi, this is something that should be extremely simple but isn't -- or maybe I'm just missing something.
I want to make it so that all my GridView cells fill up ALL available horizontal space, and not leave any awkward whitespace on the right. Additionally I want to ensure that the columns size themselves to fit their contents. If anyone's been able to accomplish this I'd enormously appreciate any tips.
Thanks! Rich
-
- Windows Live
by QuestionToBeAnswered
- 12645 Replies
- 83037 Views
- Last post
-
Transparency
- I tried to overlay transparent gif tiles over the map and they don't render transparent. They render white. Has anyone tried to put transparent gifs over the map
-
- Dotnet
by Arun S
- 70482 Replies
- 423001 Views
- Last post
-
Max date
- Hi
How do I get max day/date of the month for a given date. ie my given date is 12/14/2006. This is december 2006 so the max day is 31.
Thanks in advance
Arun
-
- Windows Vista
by DaGlow
- 34708 Replies
- 232119 Views
- Last post
-
WWF Design?
- I've been reading up on WCF and WF the past couple of days on articles I've run across on Google, blogs, etc. and at this point my head is just swimming in all the new concepts, designs, etc.
Looking for some feedback and/or suggestions for design/development for a future system, so I can focus directly on what is needed vs. all the possible ways you can use the WF system.
The current system we have is made up of a few dozen Window Services, spread across about 5 different Servers.
Each system works off an Inbox/Outbox Folder structure, which could be local or remote Servers or FTP Sites.
Each system may Insert or Read data from SQL Servers, each system may have it's own set of "working" folders where it may need to process/parse data from files that go through the system.
I have run some tutorials on working with WCF Services, and was able to get them to work fine using IIS to host it. I used a simple Windows Application for the Host to interact with the WCF Service. I was thinking of maybe using this in a distributed load balanced scenario, but not sure how to hook it into the rest of the system for load balancing.
Items I'm looking at are:
1. Build a system where each Window Service we have now could work (once redesigned/redeveloped under WWF) in a distributed load balanced environment, across the 5 different Servers we have.
2. Each new WWF System runs independent of each other, so if the Hosting App stops then it doesn't stop all the Systems but only the one.
3. If a file being processed fails, for whatever reason, need a way to make sure on the next cycle or revolution of the processing engine that the file gets processed again. At some point during the day, Databases may be backed up or engineers may be working on the Network and something spikes causing paths not to be found. This doesn't mean the file is bad, it just needs to be processed again. In the event we determine the file is bad, need the ability to remove it from the processing Queue in the event we deem it a failed packet.
4. Need a way to archive files coming in, as well as those going out.
5. Customized Tracking ability of files processed. Counts for files processed, bad packets, emails sent, etc.
6. If the Servers are restarted (occasional patches require this), need the Systems to automatically fire up when the Servers start back up.
I'm just looking for some feedback, maybe linked articles if available, that talk about what components to develop or what parts of the WWF I should be focused on for developing a system like this.
-
- SQL Server
by Lee Walters
- 156141 Replies
- 1018437 Views
- Last post
-
Convert and declared variables
- Hi all
I'm trying to re-write the convert function for an upcomming ORACLE conversion that I need to do so and since ORACLE already has a convert function built in a need to write a convert2 function which will be a basic wrapper around the convert function.
If anybody has done something like this before then I would appreciate any help but in the mean time the code I've got so far looks like this
Code Snippet
create function convert2
(
@p1 nvarchar(128),
@p2 nvarchar(128),
@p3 int = NULL -- can't get optional bit to work on this
)
returns sysname
as
BEGIN
return convert(@p1, @p2, @p3)
END
Problem I've got is that the convert function doesn't like having @p1,@p2@p3 passed into it - any ideas on how to get around this
Thanks
Lee
-
- Office
by Bdenison
- 12306 Replies
- 75880 Views
- Last post
-
Which VSTO edition should I be using?
- Earlier I downloaded the "Microsoft Visual Studio Tools for the Microsoft Office System" and now I see there's a "Microsoft Visual Studio 2005 Tools for the 2007 Microsoft Office System" download that is available.
I had to remove everything because I was experiencing problems when trying to run in debug mode (The ApplicationStartUp event was not firing, but that's another story). Now I get the following error which occurred after I remove the first VSTO install and then installed the latest.
"The Visual Studio Environment Menu Package ({715F10EB-9E99-11D2-BFC2-00C04F990235}) did not load because of previous errors. For assistance, contact the package vendor. To attempt to load this package again, type 'devenv /resetskippkgs' at the command prompt."
-
- Visual C++
by idos
- 33837 Replies
- 226851 Views
- Last post
-
Managed to unmanaged OR circular dependencies
- Hi, I am trying to make chatting program like msn, at first the whole sending message thing was done in unmanaged C++, but then my supervisor ask me to add GUI with C++.Net which is managed. I spent some time google-ing to find how to comunicate between the two, as the unmanaged component needs to call method in the managed and vice -versa. Fortunately I finally found out that I can do it with gcroot<T>. However I keep getting the same error: Error 1 error C2065: 'Form1' : undeclared identifier e:\code\gui3\gui3\server\MyUnManaged.h 105 My code look like as follows: // in the managed #include "MyUnManaged.h" namespace GUI { public ref class Form1 : public Form{ MyUnManaged * unmanaged; public: Form1() { unmanaged = new MyUnManaged(); } private: void methodThatWillCalledSomeUnmanagedMethod(); public: void methodToBeCalledByUnmanaged(); } } // in the unmanaged #include "Form1.h" class MyUnManaged { gcroot<Form1^> gui; }; Is this problem because of the gcroot<T> Do I implement it the right way OR is it a problem of circular dependencies if it is a circular dependencies, I actually have tried to do forward declaration, but the error remains. Can some one help me please .....
-
- VS Express Editions
by ang3la
- 50101 Replies
- 363816 Views
- Last post
-
Help ! import details
- i using vb express 2005
my invoice system got some tables
Customer
CustomerID
Name
Address
Statement (form statement)
StatementID
CustomerID
Date
itemno
Desription
Debit
Credit
invoice ( form invoice)
InvoiceID
invoice no ---(currently in textbox) need send to ---> itemno in statement
Invoice_date (currently in date timepicker)---need send to ---> date in statement
CustomerID
invoicedetails ( form invoice)
InvoicedetailsID
InvoiceID
quantity
price
total (currently in textbox)---need send to ---> Debit in statement
i need to send those 3 data from invoice to statement .
how to do it use sql statement
-
- Architecture
by Josh de Leeuw
- 32397 Replies
- 235048 Views
- Last post
-
Subscribe across dssnodes?
- I'm sure there is a simple solution to this, but I'm struggling to figure it out. I'm trying to have a service running on one node subscribe to a service running on a different node.
Code Snippet
AgentOperations _agentNotify = new AgentOperations(); AgentOperations _agentPort; ---in start() method------ _agentPort = ServiceForwarder<AgentOperations>("http://192.168.1.103:10000/agentbrain"); _agentPort.Subscribe(_agentNotify); Am I missing something obvious I've triple checked the URI, so I know that isn't the problem...
databaseforum