Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9153375
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T12:15:44+00:00 2026-06-17T12:15:44+00:00

My first decision was whether to store images in a database or file system

  • 0

My first decision was whether to store images in a database or file system and after some research I have chosen to do file system.

I need this to scale horizontally by acquiring more web servers as images increase so I will need to store the network/internet location of an image somewhere so I can get to it whatever web server it may be on.

I have what I need in theory but I do not know how to take a file and save it on a remote server. Specifically what is the best way to do this? Are UNC paths an option?

Just to be clear, I have already got the image server side, just need to send it/save it to any web server of my choice.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T12:15:45+00:00Added an answer on June 17, 2026 at 12:15 pm

    Locally you can just File.Copy(). Otherwise you have to upload them using FTP:

    public void UpLoadFile(String serverFilePath, string localFilePath)
    {
        String serverFullPath = "ftp://" + s_ServerHost + serverFilePath;
        FtpWebRequest ftp = (FtpWebRequest)FtpWebRequest.Create(serverFullPath);
        ftp.Credentials = new NetworkCredential("user", "password");
        ftp.KeepAlive = true;
        ftp.Method = WebRequestMethods.Ftp.UploadFile;
        ftp.UseBinary = true;
    
        using (FileStream fs = File.OpenRead(localFilePath))
        {
            Byte[] buffer = new Byte[fs.Length];
            fs.Read(buffer, 0, buffer.Length);
        }
    
        using (Stream ftpStream = ftp.GetRequestStream())
            ftpStream.Write(buffer, 0, buffer.Length);
    }
    

    In order to retrieve it, you have to know the IP/hostname of your server and the final public path of your file.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have big decision tree with many Yes/No questions. i need implement some code
first take a look on this picture from localScope app : i have 2
First i selected images from photo library to ALAsset Library and after that i
I'm using the code-first approach and have made a decision to not support lazing
I need to make a design decision about database. The requirment is that one
I have message, and need to show ten (for example) first 'root' replies with
I have this <p:selectOneMenu id=dec value=#{editCommandController.myCom.decision} > <f:selectItems value=#{editCommandController.decisions} /> <p:ajax update=etat :myform:alors event=change
I have 3 tables represented by JPA model. First one: @Entity @Table(name = DECISION)
I cannot imagine being the first one encountering this problem but I still have
First of all, this isn't for a keylogger, it's for an input in a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.