|
It might maybe possibly be somewhere in your code. But since I can't see your computer I can't tell you where.
Not sure how we can give advice on fixing a problem when you aren't showing us any of the simple program to go by?
|
|
|
|
|
Ron,
Where can I upload the source?
|
|
|
|
|
If its small you can just copy/paste and post relevant parts of your code directly in the forum, otherwise you need to use a service like DropBox.
|
|
|
|
|
Dekkie wrote: When I run it uses 3 gb or sometimes more than that. 3 Gigabytes? You must be allocating some enormous memory buffers.
Use the best guess
|
|
|
|
|
have you thought about the changing how you do the looping?
i.e.
string[] directories = Directory.GetDirectories(i);
foreach(string mDirectories in directories)
{
}
Every day, thousands of innocent plants are killed by vegetarians.
Help end the violence EAT BACON
|
|
|
|
|
How could I convert a PNG image to a SVG using C# with asp.net?
I want to convert the png image format to SVG(Scalable Vector Graphics).Is there any for such conversion. Please Reply.
|
|
|
|
|
|
But I need a vice versa conversion i.e. PNG image to SVG file. You provided the svg file to png image.
|
|
|
|
|
SVG means Scalable Vector Graphics, which is not an image in the way a .PNG or .JPG is. Rather than storing an array of pixels, it stores a list of mathematical shapes and designs. The intent of an SVG is to create an 'image' that retains quality regardless of how far you zoom in or out.
There is no benefit to converting .PNG to .SVG - in fact, it loses quite a bit of quality because you can't literally "convert" it, you can only trace it (IE, draw a new SVG that looks like the PNG.)
|
|
|
|
|
but the requirement is to convert .png to svg. So is there any way for such conversion???
|
|
|
|
|
Actually i never went for such situation and never suggested also..
there are some online tools which do the work.
apart from that code wise i am not sure.. ![Frown | :(](https://www.codeproject.com/script/Forums/Images/smiley_frown.gif)
|
|
|
|
|
Ok thanks for reply. I already use the online tool for converting png to svg it works fine but i need a code to do such functionality
|
|
|
|
|
You can make a rectangle of a certain colour for every pixel in the png..
You can even try to "expand" such rectangles to cover larger areas of the same colour with fewer rectangles.
|
|
|
|
|
|
Yes it's even easy, it just sucks that's all. You get a massive SVG that way, and it will be ugly when scaled.
|
|
|
|
|
do u have a sample code for such conversion???
Thanks in advance.
|
|
|
|
|
Nope, but it's easy. Just loop over all the pixels, and make a bunch of these
<rect x="something" y="something" width="1" height="1" style="fill:rgb(something,something,something)"/>
|
|
|
|
|
Hi i have this controller function
[HttpPost]
public JsonResult SaveList(List<cap> values)
{
return Json(new { Result = String.Format("Fist item in list: '{0}'", values[0]) });
}
and this is the class
[Serializable]
public class cap
{
public string capnumber { get; set; }
public string capname { get; set; }
public string capdescription { get; set; }
}
and this is the code in jquery
var stringArray = new Array();
stringArray.push({ 'capnumber': '1', 'capname': 'some name', 'capdescription': 'description' });
stringArray.push({ 'capnumber': '1', 'capname': 'some name', 'capdescription': 'description' });
stringArray.push({ 'capnumber': '1', 'capname': 'some name', 'capdescription': 'description' });
stringArray.push({ 'capnumber': '1', 'capname': 'some name', 'capdescription': 'description' });
var postData = { values: stringArray };
$.ajax({
type: "POST",
url: "/Home/SaveList",
data: JSON.stringify(postData),
success: function (data) {
alert(data.Result);
},
dataType: "json",
traditional: true
});
i was thinking that postdata will be mapped but it is not working
how can it happen??
|
|
|
|
|
It looks like the model binder is having problems taking the array and binding it to the generic list (I copied you code, according to fiddler[^] - a tool you should get for this type of work - the data is being sent up as JSON OK). This[^] might be of help.
|
|
|
|
|
|
HI!!!
I am using this code to remove password from word documents
http:
also this :
http:
the code works correctly and it opens documents when I am running but when I open documents again it asks me password .... I want remove the password once for all ..... Please help me
|
|
|
|
|
Would be best if you post your question on the site where you got the code, as the author(s) is more familiar with his creation than anyone else.
Signature construction in progress. Sorry for the inconvenience.
|
|
|
|
|
HI!!!
I am using this code to remove password from word documents
http:
also this :
http:
the code works correctly and it opens documents when I am running but when I open ducuments again it asks me password .... I want remove the password for all ..... Please help me
|
|
|
|
|
HI!!!
I am using this code to remove password from word documents
http:
also this :
http:
the code works correctly and it opens documents when I am running but when I open ducuments again it asks me password .... I want remove the password for all ..... Please help me
HI!!!
I am using this code to remove password from word documents
http://ishwor.cyberbudsonline.com/2013/01/remove-writeedit-protectionenforcement.html?showComment=1374659141159#c1604586394111748506
also this :
http://www.c-sharpcorner.com/Forums/Thread/61822/
the code works correctly and it opens documents when I am running but when I open ducuments again it asks me password .... I want remove the password for all ..... Please help me
|
|
|
|
|