Fetch images from Drupal with c# [closed] - c#

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 9 years ago.
Improve this question
I want to fetch images from a Drupal DB to a C# program.
In Drupal DB the image path is:
"public://yourimage.jpg"
However, this is not a usable URI for C#.
How can I get images from Drupal to C# in a secure way?

If you are going to fetch the images from a database, the URL is not important, what you need to know is if the image is in the database and in wich tabel, and if images are stores in file system, in which table is the path. Then, use plain Ado.Net to get those images.
If instead you want to fetch images from the web, then you'll need to build some kind of grabber. Maybe CsQuery project can help you in that..
https://github.com/jamietre/CsQuery

Related

Add news to c# application [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
We have a c# application wich is used by user to do stuff ;-)
What I want is to add at the startpage of the application some news or information like "hey, there is a new update for the application" or "did you know this feature..." Basically I want something similar like the startpage in Visual Studio.
The news should remain when there is no internet connection and update when there are new entires.
What's the best way to do this?
Thanks
Let your application read some data from file located in the server (XML is good idea), Also you must save the current version of your app in some file (or some where).
So after comparing between the two values you can decide what to show in your news bar.
To show some news you can just read it from another XML file in the server, Then organized it like you want.
here is good ways to read XML from server Read an XML file from http address

Access Image File from path in Web Application [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I am having an Web Application(ASP.NET MVC, C#), in which I have a functionality of uploading an excel which contains image path. So I need to know can I access the image files from the application?
PS: Images and Excel will be in the user system.
You could make the users send the real images within the file instead of sending only the paths. This would potentially generate a huge file to upload, but I don't know you application.
If image is at user location then there is no way you can access it (how insecure it would be if any website can access your image file in your system)
So your will need user to upload image as well inorder to use it

How can I incorporate the way that SQL Server 2014 displays spatial results into my .NET Application? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
When I query a table that has an SqlGeometry field there's a 'Spatial results' tab that actually draws the spatial data returned. Is it using some sort of control that I can leverage in a .NET application? If not, how can I duplicate this functionality?
I don't think there is anything built-in that will do the job.
What you could do is integrate a third-party usercontrol that will do the display.
For instance you could use GMap.Net and display some GMapPolygon on a map. Do note you'll have to convert SqlGeometry/SqlGeography to a list of points, so converting to/from WKT might be required.

How to find the path of a file using asp.net [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I am creating a website in which I need to find out the path of the downloaded files.For instance if there is an image Image1.jpeg, downloaded and saved somewhere in the system.Is there a way through which we can find out the path of that image?
If you mean: how to retrieve an uploaded image, the answer is: not possible. An uploaded image (or just any file) consists of a name an a list of bytes. You have to save it yourself.
If you are asking about downloaded files on the client, well, they are on the client, so outside of your control.

Display live scores [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I am planning to design a website which displays the live scores of matches(NBA, AFL) etc. I would like to get scores, store them in my database and then display in my website. How can I accomplish this. Thanks in advance.
Thanks,
Sandeep.
Well first you need to decide how you're going to get the data. Is there a webservice that you can query? A document/webpage you can parse to get the information? Are you going to write a speech recognition device to interpret results from the radio or will you type it in by hand.
Then you need to get your database up and running, and whatever is reading your data (maybe it could be a windows service) can write the data into the database. Something like SQLExpress is quite good to try out.
Once you've got that you'll need to decide on your technology, ASP.NET or Silverlight are some good examples. You'll want to create some controls and then databind to the results from your database, which you could obtain using SQL expressions.

Categories