|
Hello friend,
It is the approach that matters: I agree to What ever Sir,Dave Kreskowiak just said. Now you want to ask "can i insert an image inside an SQL table?".
For that you need to think:
Step1: What is the datatype that you need to assign in the SQL table which can store images?
Or
Can i store images in an SQL table?.
Step2: When you get that data type, you need to find out, which querry can i use to do that?
Step3: HOw do i integrate it with c#?
Or
How can i create an "SQL Querry in C#"?
For that you need to think, write down your doubts and start searching. This is applicable even to me. When ever we get some task we write it down in our notepad.
Think about the prerequisites. Formulate a code.
After writting that code. If we are stuck somewhere we try to do brainstorming with our freinds. If none of them are able to solve the problem, then we come to code project and seek expert guidance.
The main thing is to start off. You havent taken any efforts to do so.
Thanks.
|
|
|
|
|
Nice approach to help beginners. +5. If you teach them how to think for themselves they will learn much quicker.
When I was a coder, we worked on algorithms. Today, we memorize APIs for countless libraries — those libraries have the algorithms - Eric Allman
|
|
|
|
|
Yes Sir, thats true.
But they also need to start learning and reading. Every one wants short cuts. Well, thanks for supporting me.
When ever i say something like this people make fun, but eventually they follow the same path.
People ask: How to convert a datetime to string? and they get the answer by google searching.
But they dont think : why can i use ToString() on all the types, why can i not use ToByte()? is that type even present?
Self assessment is lacking these days Sir. I believe one must always carry a pen and a notebook. Comes handy while learning things.
When ever you get an exception write it down and search for it. There are many things .
I hope we speak again so that you enlighten me with your knowledge.
Thanks for supporting.
|
|
|
|
|
|
I want to develop a .net windows application with c# code behind to check the problems of a video file. If i give a video file as input to the tool, it should detect the problems of the video (like audio clarity, picture clarity, video struck etc.,).
Please help me.
|
|
|
|
|
This is not a trivial project; you will need to do some research into the subject, and how to identify and fix such issues.
Veni, vidi, abiit domum
|
|
|
|
|
So just how are you going to check the "audio quality" or the "video quality"?? are you checking the metadata properties of the video for certain values or are you actually trying to get the code to "listen" or "look at" the audio and video? If it's the later, good luck! You're going to need it because that is FAR from a simple thing to do.
|
|
|
|
|
|
Quote: Please help me.
Ok, what research have you done so far?
What about reading something related to Signal Processing, Sampling etc?
Did you start with:
1> Playing a video file(any file) in a form application on a button click(this may or may not be a correct approach, but something to start off with).
at least start with something. No task is impossible. I know it is tough. If one way fails there are multiple ways. At least start something.
|
|
|
|
|
Rahul VB wrote: No task is impossible
Really? I want to see you push a dead elephant to the top of Mount Everest, only yourself, with no lifting equipment.
Get started. I'll wait here.
|
|
|
|
|
Respected Sir, you are misunderstanding me. People give up without trying. I understand that it is an impossible task. But i just wanted him to put some efforts and say
"Hey people i have tried out so many things but couldn't succeed", then its ok. I agree with you.
See, the point what i am trying to make here is atleast try even if it is an impossible task. If you cant figure out any chance of completing it, then you come on code project and consult people.
If someone gives you an impossible task knowingly(for example), you dont know that it is impossible, you think that the task is doable. Only the person who gave you probably knows it.
Without even starting off if you say "I am sorry Sir cant complete it", this means that you dint even try to do it.
If he would have started the task, he would have referred few books, written some lines of code. His knowledge and coding would have increased.
I apologize to you if i said something wrong. My aim here is not to challenge you or anyone. It is just for beginners to start thinking and analyzing things .
I cant even possibly ever try to challenge you. My knowledge and ability is no where near yours. I just want to again apologize if i said something wrong.
And lastly, its my dream to become an MVP for at least one year and you have been winning this title for the past 10 years. How can i even dare to challenge you.
And i was laughing at the statement : Quote: FAR from a simple thing to do. , because it is was just the way you wrote it nothing else. My aim was not to make fun.
You just sounded humorous and witty at that time. My laughter was due to your witty statement.
Thanks and regards,
|
|
|
|
|
Thank you Rahul for the reply.
I have made lot of searches and read a document on video quality analysis. The document explains about the noise and frames/sec. So I thought let me first get frames of a video file so that I can verify whether the frames are in order or in the correct speed like x frames/sec that shows video better otherwise it implies the video is stuck or anything else.
I used DirectShow.dll to get details of a video file. But I was not able to use interface "Iqualprop". "Iqualprop" gives me details of a file.
I used Shell32 to get details of video file and I could get frames/sec details.
But these are static details. I want to stream the video file and get details so that I can check its quality.
Please help me if you have any other suggestions and how to use "Iqualprop".
|
|
|
|
|
Hi guys I'm re-posting here now..
I posted earlier but in the wrong section.
I am having this problem, I wrote a small app to display the computers hostname and IP address.
Hostname horks no problem, the issue I am sitting with is...
On some Windows 7 / 8 computers is displays the IPv6 Frown |
How do I force to only return IPv4 everytime?
This is my Code:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Net;
namespace IPChecker
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
label1.Text = "Host Computer: " + Dns.GetHostName();
foreach (IPAddress address in Dns.GetHostAddresses(Dns.GetHostName()))
{
label2.Text = "IP Address: " + address;
}
}
}
}
I have got some help:
"
Replace the label2 with a listbox and define an integer i = 0 outside of your loop.
listBox1.Items.Insert(i++, "IP Address: " + address);
"
This does work... Its shows all the IP's in a listbox BUT
I only want the IPv4 to display in a label. Simple and clean?
How would I go about doing this?
any help would be much appreciated.
|
|
|
|
|
|
I am not sure how to actually put it together to make this work? Could you advise please ?
|
|
|
|
|
Just refer to the documentation. For each IP address check the property that tells you if it is an IPv4 or IPv6 address.
Veni, vidi, abiit domum
|
|
|
|
|
Hi there,
i finally got a Problem
I have a DataGridView and in 2 cloumns there are comboboxes.
Now, what my question is:
In the first Combobox there are resources diplayed, in the second one roles.
If i choose one of the roles the resource box is refilled with resources that fit the selected role.
But the Problem is that after adding multiple rolerestrictions in the second comboboxes i only have the resource result of the last added row.
How do i get the comboboxes to work per row not as a coloumn ?
It should work like this:
----cb1----------cb2
TBD TL Res----Teamleader <- only teamleader resources avail
TBD SW Eng----Software Engineer <- only Software Engineers avail
TBD Proj M----Project Manager <- only Project Managers avail
Hope this Question is not 2 squishy
if(this.signature != "")
{
MessageBox.Show("This is my signature: " + Environment.NewLine + signature);
}
else
{
MessageBox.Show("404-Signature not found");
}
|
|
|
|
|
|
Congrats bro, well done.
5!
|
|
|
|
|
Hi,
1> I am writing a code which will call a web-service and populate xml data into a variable and then processing that data to a database table.
2> I am writing a code which will call a web-service and retrieve the XML data and write into a file(XML). And then it will process the data from that XML file to a database table.
My question is: Which is the best way: "1" or "2".
thinking all scenarios ..means
if volume of data will be more in future
performance
data reliability
flexibility,etc..
Kindly share your opinion !!
Rahul Vairagi
-----------------------------------
www.sqlserver2005forum.blogspot.com
|
|
|
|
|
Obviously, option 1 is your best bet. I assume by 'variable' you mean a data structure that can hold your xml in memory.
What is the purpose of storing it in a file? If you're concerned about losing data due to write speed and the load on the database, consider using an MQ solution. Besides being slow, writing to file requires lot of disk space and is prone to file locking issues and also requires periodic cleanup.
modified 30-Jan-14 2:55am.
|
|
|
|
|
Depends on various factors.
For starters what exactly do you mean by "volume". Do you have actual realistic numbers?
For example if you have 1 record a day now and 10 in three years it doesn't matter.
If you have 100,000 a day now and expect, realistically, 10 million at the end of the year then that is a different matter.
Also do you need to process the XML before putting into the database?
What happens if you go to the web-service right now and it isn't up? And it stays down until tomorrow? What happens if your database is down and stays down until tomorrow?
|
|
|
|
|
Hi guys
I am having this problem, I wrote a small app to display the computers hostname and IP address.
Hostname horks no problem, the issue I am sitting with is...
On some Windows 7 / 8 computers is displays the IPv6
How do I force to only return IPv4 everytime?
This is my Code:
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Net;
namespace IPChecker
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender, EventArgs e)
{
label1.Text = "Host Computer: " + Dns.GetHostName();
foreach (IPAddress address in Dns.GetHostAddresses(Dns.GetHostName()))
{
label2.Text = "IP Address: " + address;
}
}
}
}
modified 30-Jan-14 7:58am.
|
|
|
|
|
Hi & welcome to Code Project
This is the lounge, where regulars get irate if people pose programming questions - so I'd grab this one and post it to another area - probably Quick Questions, from the menu at the top of the screen.
Fortunately I don't get irate at such trivialities.
MVVM # - I did it My Way
___________________________________________
Man, you're a god. - walterhevedeich 26/05/2011
.\\axxx
(That's an 'M')
|
|
|
|
|
Hi there
Thank you
How do I move this to quick questions?
|
|
|
|