I am building a mobile application with xCode (swift). Swift cant access and read my database without a webservice to be an "intermediary".
I have found several tutorials on how to do this with .php, but since my webhotel is set up for .aspx, i really want to achieve the same with .aspx.
The following link explains how this is done with .php.
I'm having a hard time finding similar content for asp.net, so im wondering if this actually is possible?
- Can this be done as simple as on the link ????
Related
I'm working on an app using Unity. This app is supposed to upload certain simple information at specific points, which is why my original plan was to just connect it to a Mysql database. Unfortunately Unity doesn't support the NET 4.0 framework and nothing I've tried seems to work.
Yes I could use PHP scripts hosted on my web server to add and pull information, but I'd rather do it all from the app itself if at all possible.
The data I need to record is pretty simple, IDs, ints, strings, nothing too complex.
So I'm now trying to look into alternatives to Mysql.
JSON
So far I have gotten SFTP to work (By using the Renci.SshNet library) and the app is now uploading files in my server's home directory. So my original idea was to just create JSON files with the data and edit them remotely.
Is this something that could be done with C#? How? Any specific resources?
The alternative to remote editing would be to download the JSON file, edit it locally, and then upload it again, but that doesn't sound like a very smart idea.
I have found this answer but it's unclear to me if it requires to send the whole JSON file to the server after every edit or if it's possible to just edit it from the app. Some clarification would be great.
SQLlite
I've also looked into SQLlite but I'm also unsure if it could be remotely edited.
I've Googled it multiple times but can't really find any useful information.
What are my options at this point? What should I use if I needed the equivalent of a Mysql Database that can be remotely edited and read?
You can start seeing into Google Firebase project
https://firebase.google.com/docs/database/unity/start
But unity 2018.3 does support Net 4:
https://learn.microsoft.com/en-us/visualstudio/cross-platform/unity-scripting-upgrade?view=vs-2017
https://blogs.unity3d.com/es/2018/07/11/scripting-runtime-improvements-in-unity-2018-2/
https://blogs.unity3d.com/es/2018/03/28/updated-scripting-runtime-in-unity-2018-1-what-does-the-future-hold/
I'm from a web forms background and learning angular with web API in C# and I have working site for adding/editing and deleting an object record. I know want to move on to more complex problems but struggling to know where to start!
The nearest I've found is this post which seems quite good but limited to images but struggling to follow as its a bit confusing knowing which responses work.
AngularJS .Net WebAPI Upload image and save to database (MSSQL).
What I would like to do very simply is have an Object with properties Name (string) and Logo (Logo stored in db binary field). From and angular view save the object (calling route of my Web API) including validating the name and saving an image and if it already has one, display the current image.
If anyone knows of a good simple example that will achieve that and ideally will work for any kind of file as some uploads in my site might be PDFs for example I would be hugely grateful.
I've used ng-file-upload in quite a few Angular projects with no problems. It has comprehensive documentation and many examples to get you started.
The have recipes for the server side stuff too, here is one for .NET
This answer will help on the controller side in terms of getting the uploaded files into a byte array that you can then insert into the database of your choice.
I just started using dot42 as I would like to write some simple android apps in c#. When doing a c# project it is really simple to add and link a SQL database to it.
For some reason, it is not as simple with dot42. Am I doing something wrong? There isn't much documentation for it online and a google search did not bring up anything.
Thanks for reading my question.
I'm trying to create a wpf application such as a movies library because i would like to manage and sort out my movies with a pretty interface.
I'd like to create a library with all my movies getting information from the web, but i don't know how very well.
I thought to get the information from a web site, for example imdb, but i don't know if it's legally to capture html from page to get the nested information.
It's my first desktop application and I would also like to know if it is necessary to create a database within the project and then create a setup project with specified script for deploy it.
Sorry for the confusion but i would like to know too much things :)
Thanks a lot in advance.
The legality of web scraping is a grey area. See my question, "Legality of Web Scraping vs Normal Use" and the corresponding answers for some insight.
Even if the legality is not a problem, web scraping is a flimsy approach because the webpage structure may change without notice, making your application suddenly useless until you update it to the new format. You are much better off using some sort of web API (if the site providing the information offers it).
Whether you need a database or not depends entirely on what your application will be doing and how you design it - it's not something any of us can tell you.
Same goes for the setup project - in fact I wouldn't worry about that until you actually have a working application. Take it step by step and keep the scope within control.
Yes I did not think about api.
It's a great idea, maybe use "themoviedb".
But if i create an application based on it, that has to show all the movies that you have stored on your hdd and get , for example, the posters, the description and the ranking, i have to create a database according to you?
Thanks a lot.
The link below explains exactly what I am trying to do, and I have used it as a guide for my implementation so far. I have two columns filled with panels that can be moved around or collapsed. In the end, I want to save the state information about each panel on drop(as soon as the user changes it) so that when each individual user leaves or logs off, everything is where they left it upon return. I am using jquery, and c#.net for my back-end, which from what I understand makes it very difficult to incorporate PHP. I am wondering if anyone knows how I can accomplish what is demonstrated in the link, but using a method that does not include PHP?
http://webdeveloperplus.com/jquery/saving-state-for-collapsible-drag-drop-panels/
Thanks in advance
You seem a bit lost (nothing wrong about it), but since you're using C#, you should find a way in C# to access your database. PHP is just a server-side language you could use, but it means installing PHP on your server... and I don't think this is what you want/need.
I'm pretty sure, there are very nice tutorials on the web on how you can interact with your current DB (what are you using? MySQL?)
Basic tutorial for SQL with C# https://www.youtube.com/watch?v=1EpYqtSlOr8