I have a website and web api which made on .net platform.
Web api has a ImageUpload(...) method. I get images as base64 encoded string and saving after turning into byte[].
Here is the story:
Web api's root folder located at: domain.com/API and website's: domain.com/httpdocs.
I hold uploaded images in httpdocs/files/images folder. So it's different folder than web api's. Therefore I am not able to save images in httpdocs/files/images folder. Because web api's context's top folder is httpdocs/API. I can't access httpdocs/ folder.
Any idea how to achieve that?
Try using Server.MapPath to get the server side path.
Related
I have a folder on Amazon Web services and I want to transfer it to ASP.NET Server.
The Folder has huge size and I have a limited internet capacity so I can't download it and re-upload it via ASP.NET Web Forms.
so is it possible ? and How could I do it ? or What I should search for this ?
P.S: as I searched all I found was the other way around and I didn't quite understand it.
If you have folder on EC2 you can do scp [unix command to copy files from Linux to linux]
if you have it on S3; you can expose it as public folder; and then on Azure you can download it using wget/curl
I found a service that do the exact thing I want via FTP.
As the user registers two FTPs and he can copy/migraine the files/folders you want from one to the other.
Multcloud: Manage, migrate, transfer, copy, and move files between any cloud storage services.
I am working on the latest ckfinder 3.4.2 and try to integrate it with my current system built by Asp.net WebForm..The backend for CkFinder would be amazon S3. I can get this working with the static configure file.
However my website got different client. I can get the client_Id after user login in. I would like to set different folder for different client so they can't see each other's folders.
Is there anyway I can set the folder structure like {root}/{clientId}/image
dynamically. So every client got a base folder name with their client Id.
One more thing is I am not using ckeditor and the authentication is not based on OWIN as well. I just try to integrate the ckfinder to the existing system.
Any help would be really appreciated.
Thanks
Hello I am new to web services using WCF,how can I read files stored in a local directory inside my WCF application, I want to be able to read files inside my service application into my client application
I do not want to download files but view them In my client web application, I tried using HttpContext.Current.Server.MapPath(path) but my client website states directory not found since it is looking on local directory of the website
Thank you.
reading file in WCF service is just like other projects.
you can use File.ReadAllBytes or File.OpenRead.
note: you have to set appropriate permissions.
I have uploaded files using web app made with asp.net web mvc, using Server.MapPath() and all that. Now its on remote server.
All i want its http download url so that i can send this link via json and users on mobile can download that file?
Windows Server 2008 and IIS 7.
Link to Image of Json Response
FilePath property should have file download link but right now its giving me physical path of file where it is located on hard drive. Any thoughts on how to get download url?
I need to add inside my web (REST API) project a folder and an image and send a URL back to the browser that it can be used to load that image. I am using MVC and C#. Any idea?