I have been trying to create a Image Slideshow in my app. Been Searching forever for help and ended with this.
image slideshow with dispatcher timer in windows store apps
I could understand the solution but what I didn't get is the URI Code. Where does the URI Point to? Is it a folder in the app files.
My app is called idk. And the pics are in a folder inside the App folder and is called Images.
Folder path
idk-->Images
What should my URI be?
The Uri can:
Point to some asset in your application "ms-appx:///Sceneries/image.jpg" (if this is the path and name of your file)
Or you can use an internet url like "https://upload.wikimedia.org/wikipedia/en/a/a9/Example.jpg"
Related
I need to load images from a secured network drive into an HTML document. I understand that because the network drive is not part of the webroot, this is not an option and is considered a security feature to protect the files that live on the network drive and server.
I have done some research and found these solutions:
https://stackoverflow.com/a/46003218/16511184
https://www.tek-tips.com/viewthread.cfm?qid=935379
These solutions both mention the use of server-side code to access images, as the server should have permission to access files on the network drive. My question is, how do I deliver the images to the HTML document, and in ColdFusion?
My naiive guess was to just grab the image name from a query made on the server, but just slotting the name into the img tag's src attribute creates the original issue of client trying to access an image on the network drive they don't have permission to view.
Using a virtual directory to reference images on a network drive technically works, but then any images in the "folder" will be publically available to the website. Instead, you need to use <cfcontent> to read the images from the network drive and present them to the browser.
In the HTML, you'll use a CFM as the source for an image tag:
<img src="/path/to/image.cfm?imageID=1234">
You'll reference the image file by an ID and NOT by a file name. Using a file name would still allow anyone to poke around and try to load files at random. You never give the path of the file on the server via the query string.
In image.cfm, you'll load the image file's path and use <cfcontent> to deliver the file. https://cfdocs.org/cfcontent
<cfcontent type="image/jpeg" file="//path/to/network/image.jpg">
You should also validate that the user has the correct role and permission to view the image in question.
I am working on a Chrome App where I need the users to open files in a directory. For his own files, I can offer them a dialog through
chrome.fileSystem.chooseEntry
which works well. However that seems to limit me to the "Downloads" directory and Google Drive on my Chromebook. I would also like to ship some files with the application itself, so the files/folders would be located inside the app package. Is it possible to access these files through the fileSystem API?
I would not need the user to choose the files from a dialogue, it would be enough if I could get a handle to these files and offer to display them on the click of a button through my app.
Thanks in advance
You can read included files using chrome.runtime.getPackageDirectoryEntry(function(directoryEntry) {})
I don't know if this is possible, but I would like to save some data of my website, like images and documents in a cloud like dropbox or google drive and I want that these data are available and visible to someone looking my site.
is it possible? (My intention is to continue storing the html,js etc data on the server)
You can do that with Dropbox or Google Drive.
For Dropbox, put your all images to a folder and make this folder public. Then, right click the image or js file and select the copy public link. You can use this link for your images or js files.
I'm trying to develop apps for Spotify using their API. I started using this guide of theirs but got stuck quickly when it said to put my files in "My Documents/Spotify". Vista uses the folder Documents instead of My Documents (and if you try to create My Documents inside your user folder, it merges the contents into Documents), so I'm having trouble getting Spotify to find my apps.
I created folder "hurrdurrdurr" inside C:\Users\myusername\Documents\Spotify\, and put the HTML and JSON files described here inside of C:\Users\myusername\Documents\Spotify\hurrdurrdurr\, but "spotify:app:hurrdurrdurr" gave me a "metadataFailed" message with "Error:appNotFound". Any ideas where I should be putting my app files?
And yes, all of the following things have happened:
I have made my account a developer account
The "Develop" tab has appeared in Spotify
I have tried restarting Spotify after putting the app in the directory
Also, I'm using Spotify version 0.8.3.222.{build ID that I'm too lazy to copy}. I can't find a download link for any preview build, but this is the latest version as far as I can tell. Anyone
The directory should be correct, in my case it is C:\Users\buchetics\Documents\Spotify. Something is probably wrong with your app. Check out the example/tutorial here:
https://github.com/mager/spotify-apps-tutorial
I just cloned the repository and it works with the same Spotify version you are using.
After having a similar problem with getting the Spotify tutorial to load into Spotify on my Windows machine, I figured out what the issue was-- it's very simple. I'm not going to claim this will resolve every issue but a lot of people who are using Windows based machines seem to be running into this issue.
1.Once you download the Spotify tutorial from github, extract it to the folder you've created-- as stated on the github site the folder should be "Spotify".
You can place the "Spotify" folder where ever you please as long as it's on the C: drive (Desktop, My Documents, etc).
Open the "Spotify" folder; then open the "apps-tutorial-master" folder-- within this folder is a folder with a similar name "apps-tutorial-master", cut all the files from within this folder and move them up to the parent of this folder and paste them.
"Spotify"->"apps-tutorial-master"->"apps-tutorial-master"->"THE FILES WE NEED TO MOVE UP ONE DIRECTORY";
The new directory structure should look like:
"Spotfy"->"apps-tutorial-master"->"THE FILES WE MOVED UP ONE DIRECTORY;
Once you've cut and paste the files up one directory you should then be able to get Spotify to load the tutorials. The redundancy in the folder structure comes from the extraction/unzipping by the windows utility.
I hope this helps those who are using a Windows machine.
I have a java swing based UI which I use to monitor a filesystem folder. Anytime a new file is added to the folder, i upload it onto my web server.
I'd like to drop the java interface and go for a web app with a simple file uploader UI where the user can see the files being upoaded and which were uploaded.
The workflow;
User open browser. Opens the web app page. Browses and selects the local filesystem folder which needs to be monitored. Over the hours as the new files are added to the local folder, they are shown in the web interface and get uploaded onto the server.
My question is what all technologies can i use to implement this. I already have the HTMl based web Ui ready. I now need to monitor(/sync?) a selected local folder. what all do i need to do that. I remember there was something created by google which allowed a background process to monitor folders.
regards
To my knowledge I do not think its possible from the browser because of security concerns. You'll need to rely on client software. You could provide your Java app as a software, similar to Dropbox.