How to select a file from disk and upload to server? - windows-phone-7

How can I select a file from Windows Phone 7 Device disk (IsolatedStorage or something other) to upload on a remote server?
I need to select a PDF from disk and send it to
my server.
thanks.
EDIT 1:
PDF is already on device. I need to get from disk and send to server.
Is there any file enumeration or something equals to get all?

Apps can only access their own IsolatedStorage - they cannot access any other files on the device.
So, unless that PDF was retrieved by your app, and saved to IsolatedStorage via your app, your app cannot access it in order to send it out.

Related

How to make changes in Ms-access remotely

I made access database for inventory to my company and split it to front end and back end now i want to connect more than two remote pc by the same database.
Under the External Data Tab. The Access Button will allow you to specify the location of the file on the network. Choose link to the data source.
Short of using a server, you can use remote desktop etc., but you would have to have a free computer on the network for each remote user to run the front-end.

Opening network file from excel vba code on MAC uses offline file

I have excel with macros run in Mac OS.
One of the macros uses Workbooks.Open to open a file in network folder (a SharePoint site).
It works fine if there is connection into the network.
Also it works fine if the user of the Mac profile runs the macro for the first time with the network connection on or off. If there is no connection Mac returns error like it should when run first time.
However the problem is that after the user has succesfully used the file (macro) with the connection on once then Workbooks.Open does not return any error when running the macro second time and the network connection is down.
I added exit sub command right after the Open method and could see that there is same network file open on excel with status of 'Offline file'. That file was the same as the one previously opened when using the macro with network open for the first time. However the file was not fetched from the network drive as this time there is no connection to network.
Tried to find the file from Mac file system, without success.
What creates the offline copy and where is it stored?
How to delete the offline file via vba code or how to prevent excel (or Mac) from creating it ever again?
Br,
MikkoT
You should disable oplocks in the SMB protocol.
Oplocks are opportunistic locks, a client-side performance enhancement
that requires cooperation between a Windows client and the SMB
service. If SMB service supports oplocks, the client can request to
cache a file locally, in order to perform read and write operations on
the cached file rather than directly on the server. This saves network
bandwidth and increases performance for the SMB client. If another SMB
client requests access to the file, the SMB service notifies the
holder of the oplock, and that client should write changes from its
cache back to the SMB service. The SMB service does not let another
client have access to the file until the first client has finished
writing.

Upload multiple images to azure from windows phone

Is it possible to upload multiple images(In my case 4) to azure blob storage from windows phone 8 app.I am using Windows Azure storage library,Im able to upload a single image.Is there an option to upload multiple images?
The recommended solution would be to create a Web API service that you would call from your Windows Phone 8 application and send the picture to the Web API that would handle uploading your picture to a blob storage.

Filezilla FTP server - set upload location on file server

I'm setting up a FTPS server and want to upload files to File server(NAS drive). I mapped the drive and tried 'drive letter' and '\serverpath\', But during the transfer its shows failed transfer error. File transfer works for local disks.
Has anyone came accross with the issue to upload files on file server(NAS drive) using FTPS? Please let me know.
Thanks!
I found the solution.
Windows 'System' account can't access network shared drive, So i had to run filezilla server service under network user and then it worked.

How do I implement support for ftp in WP7?

Hi
I would like to retrieve documents from an ftp in my Windows phone 7 application (built with XNA in my case).
As far as I understand WP7 does not support ftp due to port and protocol(?) contraints.
Is there any way to get ftp support working?
I guess I will be able to implement it my self once socket support is added but I dopn't wan't to wait for that.
Cheers
/Jimmy
Since there are no supported socket capabilities in the initial release of WinPhone , you cannot directly FTP. You would have to create an "FTP Proxy" web service which your phone would call and have the service do the actual FTP and relay the files.
FTP and Sockets are not supported by the platform at the moment.
If you want to get remote files on to your phone you'll have to use HTTP(S).
You can do this either with the HttpWebRequest or WebClient classes depending on your specific needs.
Do you want to retrieve files fromn the phone, and over the cellular network? If so you need to confirm your operator allows ftp connections to your phone, which they probably do not.
If you're connecting over wifi, you've got more chance of this working.
Otherwise, you could implement a dropbox-style approach where the phone and your file-retrieving application both connect to a remote server
If this is for development purposes, you can get access to the phones storage and copy in files by using Microsoft's SmartDevices API.
I'm trying to do the same but so far the only way I've found around it is to create a web service to run on my own server which retrieves the FTP files on behalf on the phone.
Wish MS would hurry up and give us sockets - calling a web service is fine but I'm pretty sure it would be slower than directly getting the FTP files from the phone itself.

Resources