I'm showing an image in image control. For that I have created File Upload control of TextBox and button. And storing image in projects Images folder.Image is uploading very well. But it always needs to include in project then only I'm getting image displayed. Is there any solution to overcome this problem?
Be aware that the Silverlight application is running LOCAL in the user's browser. It cannot (easily) access files on the webserver that you upload. Files you include in the project work because they are compiled into the dll which is downloaded to the browser.
To dynamically access files uploaded to the server you need to implement some kind of WCF service to send it back. I don't know if you can easily "download" a file into a Silverlight App with a URL. Silerlight is pretty tight on what you can and cannt do...
Related
I have integrated Microsoft One Drive cloud service to one of my web applications through the REST API.During the time I registered my applications with One Drive through the Application Settings page, I had uploaded application logo's for each of the application which I had registered. But right now when I open it after some days , I find that the logo's which I uploaded for few of the applications are missing while for few, its present as it is. For few applications, it just shows 'Image of a 48 by 48 logo' message in place of the logo. This is kind of weird because I had uploaded the same logo for all the applications initially. Also, when I inspect that image element I find the src attribute for the image has some different location internal to Microsoft and my image is not present there. Even if I try to upload the same image again, it just saves the changes but doesn't show the image there. Can someone help me out with this?
Thanks for this report. We found an issue with some of the icons and it should now be fixed. Your URL works now.
I want to save file in my local system.
This purpose i need to choose directory where the file want to save.
I want the choosing folder path.
I didn't find any web controls please help me. windows from control is not working in web forms.
I have tied using FolderBrowserDialog control but it is not working in MVC
There is no such control (except using ActiveX Control or Java Applets), so don't waste your time to look for it and you can not get any folder path(on client machine) with JavaScript due to security reasons.
Why don't you just allow user to download the file and user will select the folder where he wants that file to be saved or else it will get saved in default folder of browser.
Hope it helps, thanks.
Let's say i have a list of files. When I click on one it will get downloaded and saved into the app's isostore. Then it's opened in the default viewer/editor on the windows phone like this:
Windows.System.Launcher.LaunchFileAsync(file);
But when I make some changes to the file and want to save it, it can't, because it's a read-only copy of the file. Is there some way to get write-access to the file or else some public/shared (iso)store that every app has access to? The goal is to download the file, edit it and upload it back to the server.
Per the Windows Phone documentation, the Windows.System.Launcher.LaunchFileAsync API is not implemented for the Windows Phone platform:
Windows Phone 8: This API is not implemented and will throw an
exception if called.
In regards to saving the file so that it can be accessed by other applications, this is not possible, unless the file you are dealing with is a photo, in which case you could use the Media Library API.
I'm trying to create an Applescript script which essentially downloads files from Safari. However, the files are not available for download via the web page, so I usually open up the Web Inspector and then go to Resources and then in a folder called Other, download the file.
I've been searching the web for a method to do this via Applescript, but to no avail. My question is therefore: How can I access the Web Inspector > Resrouces > Other files in my current Safari window? I know that it is possible to bring up the Web Inspect using ⌥⌘I, and then you can change pane inside of the Inspector using ⌘]. But I can't get focus on the list of Resources Files, as shown below:
Is it possible to access this .mp3 file inside of the Other folder without using shortcut commands? And if not/if so, how can I access the Other folder inside of this window pane?
Thanks for your help in advance.
Is it possible that you can access the .mp3 file some other way? Rather than using the Web Inspector, perhaps you can find the link to the .mp3 file within the page source code, and then download it.
If you want to access the "Other" folder, then you will have to copy the web address you need it for, reset safari, go to the web page via the html bar and then open up the web inspector via alt>cmd>I and it should be there.Not sure what Apple Script has to do with anything (But I have never used it :P)
Hope this helps
I have created a web application in that application i have added two folder. one is admin folder and under admin i have added a upload folder. In upload folder i have three different audio's. And also i have imported DLL for Windows media player. Through this media player im able to play the audios in local host.
By giving Direct path like MediaPlayer1.Filename="C:\User\sam\waka.mp3"
But when i host the website im getting problem the page is getting refreshed but the audio is not getting played.
I have tried this path Server.Mappath(".\.\upload\waka.mp3")
and Server.Mappath("~\admin\upload\waka.mp3)
the above both paths are not working when i host the website please reply.
It's still a bit unclear, but it sounds like there's some kind of audio player in your website (an ActiveX control or something?) that's trying to reference a path on the server as though it were on the client that's loading the page. Naturally, this will work on your development machine because the client and the server are the same thing.
What's actually being rendered on the client side? What happens if you reference the audio file by its URL rather than its file system path?
Or are you trying to do something different than what I describe? Are you actually trying to play the audio on the server when the client accesses the site?