|
Well, that depends if the content in the stream is a valid image file that's just been streamed. I think more information about what's in that array of bytes is necessary.
|
|
|
|
|
Hi Hi,
From what I see from OriginalGriff's response (and the original query) he is correct. As long as the receiving end is expecting an image in the stream being sent then all should be rendered okay. I've personally used this technique on a few occasions and it worked quite nicely.
Having said that, I also see the point you are making and I believe that some kind of error checking or (what I prefer using) handshake response/acknowledge to ensure that what data is being streamed is what is to be expected and will therefore be implemented properly.
Just me two cents ,
Cheers,
Glen Vlotman
"You cannot code for stupidity"
|
|
|
|
|
I have a button in my form and on click of that button I am writing this code....
OdbcCommand cmd ;
cmd = new OdbcCommand(abc, cn);
cmd.CommandType = CommandType.StoredProcedure;
cmd.ExecuteNonQuery();
I have made a procedure named abc in database which is returning only one row from login table..So i am just checking that on click of that button my procedure should run but while debugging when i come to cmd.ExecuteQuery() it throws following error..
ERROR [42000] [MySQL][ODBC 5.1 Driver][mysqld-5.0.77-community-nt]You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near abc() at line 1.
So plz tell me what should be the problem.
|
|
|
|
|
Hi,
1. the code as shown does not compile. What is abc?
2. if the data provides claims there is an error in your SQL, the least you should do is take an actual look at the SQL statement; and if you have to ask about it, then show it in your post.
3. you should call Dispose for objects that have such method once you don't need them any longer, in particular for SQL commands and connections.
4. are you sure your SP doesn't need parameters? if it does, I suggest you use OdbcParameter instances.
|
|
|
|
|
This is the code to execute a procedure with parameters:
using (SqlConnection con = new SqlConnection(connectionString))
{
con.Open();
using (SqlCommand com = new SqlCommand("proc_userinfo", con))
{
com.CommandType = CommandType.StoredProcedure;
com.Parameters.AddWithValue("@uid", "My new uid");
com.Parameters.AddWithValue("@uname", "My new uname");
com.Parameters.AddWithValue("@uip", "My new uip");
com.ExecuteNonQuery();
} In your case, you need to convert the abc to a string as an absolute minimum:
cmd = new OdbcCommand("abc", cn); However, it is good practice to Dispose OdbcCommand objects: hence the using block in my example.
Ideological Purity is no substitute for being able to stick your thumb down a pipe to stop the water
|
|
|
|
|
nitish_07 wrote: So plz tell me what should be the problem.
Exactly the same as here[^]. Why have you reposted this in the C# forum when it is clearly a MySQL issue?
|
|
|
|
|
Hi,
Please post your code of stored procedure.
-Amit
|
|
|
|
|
hi i need iddfs C# code program for my project course ,,, who is here to can send me me this complete project. i need it very much . plz someone send me its code in c# . plz help me ,,,,, plzzz ,
thanks
|
|
|
|
|
Please don't repost the same question in various different forums.
|
|
|
|
|
Again, nobody is going to just hand to the project for you to turn in as your own work.
|
|
|
|
|
You'd better stock up on some tissues. You're going to be crying for a long time.
|
|
|
|
|
you have to do your homework yourself, otherwise you have to rely on other for rest of your life.
|
|
|
|
|
lida zar wrote: i need it very much
I am certain that if you have enough money you can find someone willing to do it.
|
|
|
|
|
"Man who stand on hill with mouth open wait long time for roast duck to drop in."
"Microsoft -- Adding unnecessary complexity to your work since 1987!"
|
|
|
|
|
Hi!
I'm Bao, i living in VietNam.
i working with .NET, C#, ASP.NET, Windows form, SQL, XML...
How i can find a job at outside?
Who can help me please? i need help.
pm me +84929015667 or baodlu@yahoo.com
|
|
|
|
|
Never post your email address in any forum, unless you really like spam! If anyone replies to you, you will receive an email to let you know.
Ideological Purity is no substitute for being able to stick your thumb down a pipe to stop the water
|
|
|
|
|
i know but np because i think i need help!
|
|
|
|
|
vubao_ctk29 wrote: How i can find a job at outside?
Presumably you mean outside your country.
You find large companies, find their online posted jobs and you apply for them.
With larger companies you are more likely to find one that is willing to pay the additional costs to relocate you as well as deal with any legalities of dealing with a non-citizen.
|
|
|
|
|
|
If you mean an employer willing to help you relocate to a different country I suppose big corporations are your best bet.
However, unless you can convincingly demonstrate you have skills that are hard to get at home and/or you are willing to work for much less than your peers already at the location, I fear you may find this an uphill struggle. Formal qualifications probably matter more than real skill in this situation, in fact it seems to matter more than real skill even within many "liquid job-markets" as employers are still terrible at evaluating programmers. (You'll find loads to read on this topic around the web if it interests you; see for example codinghorror.com for a start.)
If you're interested in alternative ways to improve your living without necessarily leaving Vietnam and you do have the skills (many, many think they do and do not), I would suggest you at least test the waters a little doing freelance work. I have no experience with it myself, but sites like guru.com claim a lot of work gets done this way. Don't kid yourself: You need to have the skills, and to put in a lot of effort to sell projects when you're an unknown nobody. But this could possibly get you some projects, and if you do a great job you could find it easier to get more work in the future. It is even conceivable this could help you get references or contacts that could some day lead to a job offer. Again, I have no experience with this, so consider it as ideas, not advice.
Ultimately I think you'll need to have a lot of resolve and be willing to put in a lot of work with little or no guarantee (just a chance) that any great rewards will result.
|
|
|
|
|
Although you have post your question on wrong forum,
But my suggestion is to get as much experience as you can and try to be expert in your field. if you do not have job then try to get some training(without pay). once you have good handon experience ppl will call you
best of luck for your future.
|
|
|
|
|
Help me!
i have a problem about AND/OR Graph Search Demo.
Who can help me???
Thank you very much!
(^-^) Thank you! (^-^)
|
|
|
|
|
Please do not post the same question in multiple forums. Especially as you have given no information on what your problem is.
|
|
|
|
|
Along with your question, also post the things you have done. and the explanation with your problem. we can suggest you some alternative/resolution.
|
|
|
|
|
the things I have done:
- Created Graph normal.(create ndoe, create line..)
- Created Search Algorithms in Graph normal, not And/Or graph.
I hope you help me to search on And/Or Graph by Depth First Search.
Thank so much!
Note: the things I have done:http://www.mediafire.com/?ktnt8a48hg8ftgv[^]
|
|
|
|